decl.c (grokdeclarator): Allow namespace-scoped members if they are friends.
authorMartin v. Löwis <loewis@informatik.hu-berlin.de>
Sun, 8 Nov 1998 03:19:20 +0000 (03:19 +0000)
committerMartin v. Löwis <loewis@gcc.gnu.org>
Sun, 8 Nov 1998 03:19:20 +0000 (03:19 +0000)
* decl.c (grokdeclarator): Allow namespace-scoped members if they
are friends.

From-SVN: r23567

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

index 2f677172cb38a260ab636f39fdee2cb4fd9c3b9a..484799c2741c9f9ae11b4562443e65637c4114e2 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 a54724205c0d607188d1fc80bfd8458d6eafcd6d..485d8e4b6fd6a272a750a8bb04d8d4ae48773d7d 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 `::'");