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:
parent
c722cc65cd
commit
cfb47f9a65
2 changed files with 11 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2342,6 +2342,8 @@ public class CPPTemplates {
|
|||
}
|
||||
}
|
||||
}
|
||||
} else if (t != owner) {
|
||||
return new ProblemBinding(unknown.getUnknownName(), IProblemBinding.SEMANTIC_BAD_SCOPE);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue