OSDN Git Service

* g++.old-deja/g++.pt (lookup10.C): New test.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Jul 2000 15:44:29 +0000 (15:44 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 3 Jul 2000 15:44:29 +0000 (15:44 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34846 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/lookup10.C [new file with mode: 0644]

index 3f8342c..5de979c 100644 (file)
@@ -1,5 +1,9 @@
 2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * g++.old-deja/g++.pt (lookup10.C): New test.
+
+2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
+
        * g++.old-deja/g++.pt (typename25.C): New test.
 
 2000-07-02  Zack Weinberg  <zack@wolery.cumb.org
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/lookup10.C b/gcc/testsuite/g++.old-deja/g++.pt/lookup10.C
new file mode 100644 (file)
index 0000000..f348988
--- /dev/null
@@ -0,0 +1,20 @@
+// Build don't link:
+
+// Copyright (C) 2000 Free Software Foundation
+// Contributed by Nathan Sidwell 3 July 2000 <nathan@codesourcery.com>
+// We'd get confused entering a namespace via an alias
+
+namespace Outer {
+  namespace Render_Real {
+    typedef void Type;
+  }
+
+  namespace Core_Real {}  
+  namespace Core = Core_Real;
+
+  namespace Core_Real {
+    template<class T> void Foo (T *) {}
+  }
+
+  template<> void Core::Foo<> (Render_Real::Type *) {}
+}