Commit 997a088c by Martin v. Löwis Committed by Martin v. Löwis

decl.c (grokdeclarator): Allow namespace-scoped members if they are friends.

	* decl.c (grokdeclarator): Allow namespace-scoped members if they
	are friends.

From-SVN: r23567
parent 6b57b51d
1998-11-08 Martin von Lwis <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
......
......@@ -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 `::'");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment