diff --git a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java index 54d41fd0a89..1aed5bef687 100644 --- a/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java +++ b/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java @@ -3568,11 +3568,36 @@ public class AST2TemplateTests extends AST2BaseTest { // new A(&B::m); // } // }; - public void testNestedTemplates_259872() throws Exception { + public void testNestedTemplates_259872_1() throws Exception { BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true); bh.assertNonProblem("A", 9, ICPPConstructor.class); } + // template + // struct A { + // template struct C { + // typedef T (U::*method1)(); + // }; + // template struct C { + // typedef T (U::*method1)(); + // }; + // typedef typename C::method1 method2; + // + // A(method2 p); + // }; + // + // struct B { + // int m(); + // + // void test() { + // new A(&B::m); + // } + // }; + public void _testNestedTemplates_259872_2() throws Exception { + BindingAssertionHelper bh= new BindingAssertionHelper(getAboveComment(), true); + bh.assertNonProblem("A", 9, ICPPConstructor.class); + } + // template // class DumbPtr { // public: