1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-14 12:35: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:
Sergey Prigogin 2013-02-05 09:15:49 -08:00
parent 862099aa7a
commit 8f2f79f4f2

View file

@ -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 {