This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3538: g++ should not allow friend to inaccessible members.
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, veksler at il dot ibm dot com
- Subject: Re: c++/3538: g++ should not allow friend to inaccessible members.
- From: nathan at gcc dot gnu dot org
- Date: 8 Jul 2001 16:21:36 -0000
Synopsis: g++ should not allow friend to inaccessible members.
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sun Jul 8 09:21:36 2001
State-Changed-Why:
You are correct in reading the standard, and that friend
access should be checked. You are also correct in asserting
it to be a bad rule. So bad in fact that C++ defect report
209 changed it. g++ uses 209's (proposed?) resolution.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3538&database=gcc