aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2000-07-03 15:43:49 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2000-07-03 15:43:49 +0000
commita1089a8e04194da3c59e3ff3daed9578d36b41b8 (patch)
treed8092e1bc791c6fcb75a635364ff3555712a63b4 /gcc
parentcb4b535dc26b37c727a73725e52cba24ba826fb0 (diff)
downloadgcc-a1089a8e04194da3c59e3ff3daed9578d36b41b8.zip
gcc-a1089a8e04194da3c59e3ff3daed9578d36b41b8.tar.gz
gcc-a1089a8e04194da3c59e3ff3daed9578d36b41b8.tar.bz2
* decl2.c (push_decl_namespace): Push the original namespace.
From-SVN: r34845
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/decl2.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 3063e0f..c937d7c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c
index c172d50..bbc66ad 100644
--- a/gcc/cp/decl2.c
+++ b/gcc/cp/decl2.c
@@ -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