* decl.c (grokvardecl): Fix thinko.
authorJason Merrill <jason@yorick.cygnus.com>
Sun, 18 Oct 1998 04:18:02 +0000 (04:18 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 18 Oct 1998 04:18:02 +0000 (00:18 -0400)
From-SVN: r23161

gcc/cp/ChangeLog
gcc/cp/decl.c

index 37e7300..5ccf3c1 100644 (file)
@@ -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.
 
index dc6b9e9..39b8b7d 100644 (file)
@@ -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));