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

Bug 365981: Undetected syntax failure instantiating function template

This commit is contained in:
Markus Schorn 2011-12-22 11:24:31 +01:00
parent c722cc65cd
commit cfb47f9a65
2 changed files with 11 additions and 0 deletions

View file

@ -5638,4 +5638,13 @@ public class AST2TemplateTests extends AST2BaseTest {
public void testTemplateAmbiguityInDeleteExpression_364225() throws Exception {
parseAndCheckBindings();
}
// template <typename T> void foo(T);
// template <typename T> void foo(T, typename T::type* = 0);
// int main() {
// foo(0);
// }
public void testSFINE_365981() throws Exception {
parseAndCheckBindings();
}
}

View file

@ -2342,6 +2342,8 @@ public class CPPTemplates {
}
}
}
} else if (t != owner) {
return new ProblemBinding(unknown.getUnknownName(), IProblemBinding.SEMANTIC_BAD_SCOPE);
}
}