Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Prigogin2012-04-26 23:23:14 -0400
committerSergey Prigogin2012-04-26 23:37:56 -0400
commitb6a384b943d12fbf7fccdb6142fcfed7de8d8a01 (patch)
treee6c7423ec8cb6df6a7517b172d44de1b973ecd34 /core/org.eclipse.cdt.core.tests
parent5ef2d0db02e234e01ca294f3a90a4b6602680fe1 (diff)
downloadorg.eclipse.cdt-b6a384b943d12fbf7fccdb6142fcfed7de8d8a01.tar.gz
org.eclipse.cdt-b6a384b943d12fbf7fccdb6142fcfed7de8d8a01.tar.xz
org.eclipse.cdt-b6a384b943d12fbf7fccdb6142fcfed7de8d8a01.zip
Bug 377838 - Name resolution gets confused by a class and a namespace
with the same name
Diffstat (limited to 'core/org.eclipse.cdt.core.tests')
-rw-r--r--core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java19
1 files changed, 18 insertions, 1 deletions
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 53a03726d8..7e5f834f08 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
@@ -4954,7 +4954,24 @@ public class AST2TemplateTests extends AST2BaseTest {
tu = validateCopy(tu);
assertEquals(1, tu.getDeclarations().length);
}
-
+
+ // namespace A {
+ //
+ // template <typename T>
+ // struct A {
+ // A();
+ // };
+ //
+ // template <typename U>
+ // A<U>::A() {}
+ //
+ // A<int> a;
+ //
+ // }
+ public void testBug377838() throws Exception {
+ parseAndCheckBindings();
+ }
+
// namespace N {
// inline namespace M {
// template<class T> void f(T&) { }

Back to the top