aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMark Mitchell <mark@markmitchell.com>1998-12-15 13:59:57 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1998-12-15 13:59:57 +0000
commitc7dda1e388309a4fffe95c0903b1029c2669b20c (patch)
tree866060073cb305f0c886bf5697fabce0709ae8aa /gcc
parent5ba52c2e99ed80cdb4066ab2b8c090a07ac2b40c (diff)
downloadgcc-c7dda1e388309a4fffe95c0903b1029c2669b20c.zip
gcc-c7dda1e388309a4fffe95c0903b1029c2669b20c.tar.gz
gcc-c7dda1e388309a4fffe95c0903b1029c2669b20c.tar.bz2
decl.c (poplevel): Make sure ns_binding is initialized.
1998-12-15 Mark Mitchell <mark@markmitchell.com> * decl.c (poplevel): Make sure ns_binding is initialized. From-SVN: r24332
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/decl.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 57d129a..7955e4c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
1998-12-15 Mark Mitchell <mark@markmitchell.com>
+ * decl.c (poplevel): Make sure ns_binding is initialized.
+
* decl.c (finish_function): Undo inadvertant change in previous
patch.
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 81fa59f..356293a 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -1365,7 +1365,9 @@ poplevel (keep, reverse, functionbody)
if (!outer_binding)
ns_binding = IDENTIFIER_NAMESPACE_VALUE (DECL_NAME (link));
-
+ else
+ ns_binding = NULL_TREE;
+
if (outer_binding
&& (BINDING_LEVEL (outer_binding)
== current_binding_level->level_chain))