1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Improved error reporting.

This commit is contained in:
Sergey Prigogin 2012-08-15 16:29:50 -07:00
parent e65a79e4cc
commit 3d025cec9d

View file

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