decl.c (start_decl): Revert problem change.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 15 May 1998 20:31:52 +0000 (20:31 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 May 1998 20:31:52 +0000 (16:31 -0400)
* decl.c (start_decl): Revert problem change.
* Makefile.in (CONFLICTS): Fix.

From-SVN: r19785

gcc/cp/ChangeLog
gcc/cp/Makefile.in
gcc/cp/decl.c

index 4640fb879f1f046b1e2a22bce3c2f13c8c3e4999..eb6000e346e6993638ca5d23e58512ea4d38125e 100644 (file)
@@ -1,3 +1,9 @@
+Fri May 15 20:28:00 1998  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * decl.c (start_decl): Revert problem change.
+
+       * Makefile.in (CONFLICTS): Fix.
+
 Fri May 15 15:34:02 1998  Benjamin Kosnik  <bkoz@rhino.cygnus.com>
 
         * decl.c (duplicate_decls): Clean up, add DECL_DATA_AREA bits.
index 869023d15d80a846bfc5bd94484c36ee94ac7baf..61da1abcd82dfd6e918cae97836aa2ce005d5a16 100644 (file)
@@ -206,7 +206,7 @@ parse.o : $(PARSE_C) $(CONFIG_H) $(CXX_TREE_H) $(srcdir)/../flags.h lex.h \
        $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(BIG_SWITCHFLAG) \
   `echo $(PARSE_C) | sed 's,^\./,,'`
 
-CONFLICTS = expect 21 shift/reduce conflicts and 49 reduce/reduce conflicts.
+CONFLICTS = expect 20 shift/reduce conflicts and 39 reduce/reduce conflicts.
 $(PARSE_H) : $(PARSE_C)
 $(PARSE_C) : $(srcdir)/parse.y
        @echo $(CONFLICTS)
index 078b31867783e7ca334a8ec9c3da6b4553596836..9d409e3620d713eac27112d90eca8e65f4ec5a7f 100644 (file)
@@ -6217,7 +6217,10 @@ start_decl (declarator, declspecs, initialized, attributes, prefix_attributes)
      comes from another scope, e.g. a static member variable.
      TEM may equal DECL or it may be a previous decl of the same name.  */
   
-  if ((TREE_CODE (decl) != PARM_DECL && DECL_CONTEXT (decl) != NULL_TREE)
+  if ((TREE_CODE (decl) != PARM_DECL && DECL_CONTEXT (decl) != NULL_TREE 
+       /* Definitions of namespace members outside their namespace are
+         possible. */
+       && TREE_CODE (DECL_CONTEXT (decl)) != NAMESPACE_DECL)
       || (TREE_CODE (decl) == TEMPLATE_DECL && !namespace_bindings_p ())
       || TREE_CODE (type) == LANG_TYPE
       /* The declaration of template specializations does not affect