* decl2.c (push_decl_namespace): Push the original namespace.
authorNathan Sidwell <nathan@codesourcery.com>
Mon, 3 Jul 2000 15:43:49 +0000 (15:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 3 Jul 2000 15:43:49 +0000 (15:43 +0000)
From-SVN: r34845

gcc/cp/ChangeLog
gcc/cp/decl2.c

index 3063e0f..c937d7c 100644 (file)
@@ -1,5 +1,9 @@
 2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
 
+       * decl2.c (push_decl_namespace): Push the original namespace.
+
+2000-07-03  Nathan Sidwell  <nathan@codesourcery.com>
+
        * pt.c (instantiate_class_template): Set CLASSTYPE_VBASECLASSES.
        * semantics.c (begin_class_definition): Clear it.
 
index c172d50..bbc66ad 100644 (file)
@@ -4703,7 +4703,8 @@ push_decl_namespace (decl)
 {
   if (TREE_CODE (decl) != NAMESPACE_DECL)
     decl = decl_namespace (decl);
-  decl_namespace_list = tree_cons (decl, NULL_TREE, decl_namespace_list);
+  decl_namespace_list = tree_cons (ORIGINAL_NAMESPACE (decl),
+                                   NULL_TREE, decl_namespace_list);
 }
 
 void