OSDN Git Service

* decl.c (grokdeclarator): Allow namespace-scoped members if they
authorloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Nov 1998 03:19:20 +0000 (03:19 +0000)
committerloewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 8 Nov 1998 03:19:20 +0000 (03:19 +0000)
are friends.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23567 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2f67717..484799c 100644 (file)
@@ -1,3 +1,8 @@
+1998-11-08  Martin von Löwis  <loewis@informatik.hu-berlin.de>
+
+       * decl.c (grokdeclarator): Allow namespace-scoped members if they
+       are friends.
+
 1998-11-08  Jason Merrill  <jason@yorick.cygnus.com>
 
        * pt.c (tsubst_decl): Don't mess with the global value of an 
index a547242..485d8e4 100644 (file)
@@ -10480,7 +10480,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist)
               are error_mark_node, for example.  */
            decl = NULL_TREE;
          }
-       else if (in_namespace)
+       else if (in_namespace && !friendp)
          {
            /* Something like struct S { int N::j; };  */
            cp_error ("invalid use of `::'");