mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
Bug 399592 - Template Argument Deduction throws AssertionErrors
Change-Id: I891a0ea21e54c2e0a4969a351b3366859525dcd4 Reviewed-on: https://git.eclipse.org/r/10165 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
This commit is contained in:
parent
862099aa7a
commit
8f2f79f4f2
1 changed files with 2 additions and 1 deletions
|
@ -619,10 +619,11 @@ public class TemplateArgumentDeduction {
|
||||||
}
|
}
|
||||||
ICPPTemplateArgument pattern = p[j].getExpansionPattern();
|
ICPPTemplateArgument pattern = p[j].getExpansionPattern();
|
||||||
for (int i= j; i < a.length; i++) {
|
for (int i= j; i < a.length; i++) {
|
||||||
|
if (i != j)
|
||||||
|
deduct.incPackOffset();
|
||||||
if (!deduct.fromTemplateArgument(pattern, a[i], point)) {
|
if (!deduct.fromTemplateArgument(pattern, a[i], point)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
deduct.incPackOffset();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue