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:
parent
e65a79e4cc
commit
3d025cec9d
1 changed files with 2 additions and 2 deletions
|
@ -2021,8 +2021,8 @@ public class CPPTemplates {
|
||||||
// specializations, then the use of the class template is ambiguous and the program is
|
// specializations, then the use of the class template is ambiguous and the program is
|
||||||
// ill-formed.
|
// ill-formed.
|
||||||
if (!bestMatchIsBest) {
|
if (!bestMatchIsBest) {
|
||||||
return new CPPTemplateDefinition.CPPTemplateProblem(null, IProblemBinding.SEMANTIC_AMBIGUOUS_LOOKUP,
|
return new CPPTemplateDefinition.CPPTemplateProblem(point,
|
||||||
template.getNameCharArray());
|
IProblemBinding.SEMANTIC_AMBIGUOUS_LOOKUP, template.getNameCharArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (bestMatch == null)
|
if (bestMatch == null)
|
||||||
|
|
Loading…
Add table
Reference in a new issue