This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52212] friend declaration doesn't see previous friend of same function
- From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 12 Feb 2012 13:26:04 +0000
- Subject: [Bug c++/52212] friend declaration doesn't see previous friend of same function
- Auto-submitted: auto-generated
- References: <bug-52212-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52212
Daniel KrÃgler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #2 from Daniel KrÃgler <daniel.kruegler at googlemail dot com> 2012-02-12 13:26:04 UTC ---
My reading of 11.3 p9,
"A name nominated by a friend declaration shall be accessible in the scope of
the class containing the friend declaration."
tends to be that the example should ill-formed (D has no access to the name
D::E::F).