Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2013-02-05 17:15:49 +0000
committerSergey Prigogin2013-02-05 22:07:57 +0000
commitfd96243c704c11eda1627f4a7802ba0837956728 (patch)
treed3810ef06575938fa08e2368457edb463adaea2e
parent9ed227afeb1543e3637e8cdf0cb9b0fb9fab8378 (diff)
downloadorg.eclipse.cdt-fd96243c704c11eda1627f4a7802ba0837956728.tar.gz
org.eclipse.cdt-fd96243c704c11eda1627f4a7802ba0837956728.tar.xz
org.eclipse.cdt-fd96243c704c11eda1627f4a7802ba0837956728.zip
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>
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/TemplateArgumentDeduction.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/TemplateArgumentDeduction.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/TemplateArgumentDeduction.java
index 555f1ec9e77..8d33b882c8d 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/TemplateArgumentDeduction.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/TemplateArgumentDeduction.java
@@ -619,10 +619,11 @@ public class TemplateArgumentDeduction {
}
ICPPTemplateArgument pattern = p[j].getExpansionPattern();
for (int i= j; i < a.length; i++) {
+ if (i != j)
+ deduct.incPackOffset();
if (!deduct.fromTemplateArgument(pattern, a[i], point)) {
return false;
}
- deduct.incPackOffset();
}
break;
} else {

Back to the top