diff options
author | Jason Merrill <jason@yorick.cygnus.com> | 1998-10-18 04:18:02 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1998-10-18 00:18:02 -0400 |
commit | 820fcad8d10d88e7af355e9412335351c188cd3d (patch) | |
tree | b2ef9a9aa75c62401c29d37c63efbf5aca02573a /gcc | |
parent | 1eab9b561459199edc53a6d1c2b883eedf887282 (diff) | |
download | gcc-820fcad8d10d88e7af355e9412335351c188cd3d.zip gcc-820fcad8d10d88e7af355e9412335351c188cd3d.tar.gz gcc-820fcad8d10d88e7af355e9412335351c188cd3d.tar.bz2 |
* decl.c (grokvardecl): Fix thinko.
From-SVN: r23161
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 37e7300..5ccf3c1 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,5 +1,7 @@ 1998-10-18 Jason Merrill <jason@yorick.cygnus.com> + * decl.c (grokvardecl): Fix thinko. + * decl.c (grokdeclarator): Embedded attrs bind to the right, not the left. diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index dc6b9e9..39b8b7d 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8311,6 +8311,8 @@ grokvardecl (type, declarator, specbits_in, initialized, constp, in_namespace) context = in_namespace; else if (namespace_bindings_p () || RIDBIT_SETP (RID_EXTERN, specbits)) context = current_namespace; + else + context = NULL_TREE; decl = build_decl (VAR_DECL, declarator, complete_type (type)); |