Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-08-15 19:29:50 -0400
committerSergey Prigogin2012-08-17 15:02:39 -0400
commit3d025cec9ded1f6dd8e3cfec589922614dcbef2a (patch)
tree4a99c6d8a9afbcb838536253c558b5da7b84d250
parente65a79e4cc42b4a5667e3f6eb1368bf15aded076 (diff)
downloadorg.eclipse.cdt-3d025cec9ded1f6dd8e3cfec589922614dcbef2a.tar.gz
org.eclipse.cdt-3d025cec9ded1f6dd8e3cfec589922614dcbef2a.tar.xz
org.eclipse.cdt-3d025cec9ded1f6dd8e3cfec589922614dcbef2a.zip
Improved error reporting.
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java
index ed1fbbb19a..122590d473 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java
@@ -2021,8 +2021,8 @@ public class CPPTemplates {
// specializations, then the use of the class template is ambiguous and the program is
// ill-formed.
if (!bestMatchIsBest) {
- return new CPPTemplateDefinition.CPPTemplateProblem(null, IProblemBinding.SEMANTIC_AMBIGUOUS_LOOKUP,
- template.getNameCharArray());
+ return new CPPTemplateDefinition.CPPTemplateProblem(point,
+ IProblemBinding.SEMANTIC_AMBIGUOUS_LOOKUP, template.getNameCharArray());
}
if (bestMatch == null)

Back to the top