From: Jason Merrill Date: Fri, 15 May 1998 20:31:52 +0000 (+0000) Subject: decl.c (start_decl): Revert problem change. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51bcf66114982e2322781d49d45494e26074028e;p=gcc.git decl.c (start_decl): Revert problem change. * decl.c (start_decl): Revert problem change. * Makefile.in (CONFLICTS): Fix. From-SVN: r19785 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 4640fb879f1..eb6000e346e 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +Fri May 15 20:28:00 1998 Jason Merrill + + * decl.c (start_decl): Revert problem change. + + * Makefile.in (CONFLICTS): Fix. + Fri May 15 15:34:02 1998 Benjamin Kosnik * decl.c (duplicate_decls): Clean up, add DECL_DATA_AREA bits. diff --git a/gcc/cp/Makefile.in b/gcc/cp/Makefile.in index 869023d15d8..61da1abcd82 100644 --- a/gcc/cp/Makefile.in +++ b/gcc/cp/Makefile.in @@ -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) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 078b3186778..9d409e3620d 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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