This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
c++/2137: friend access and DR 209
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2137: friend access and DR 209
- From: nathan at codesourcery dot com
- Date: 1 Mar 2001 09:45:47 -0000
- Reply-To: nathan at codesourcery dot com
>Number: 2137
>Category: c++
>Synopsis: friend access and DR 209
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Thu Mar 01 01:46:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Nathan
>Release: unknown-1.0
>Organization:
>Environment:
CVS 20010228
>Description:
The attached program produces a load of errors. There
are two problems
1) some of the errors are on the wrong lines
2) DR209 removes the requirement that name designated by
the friend declaration shall be accessible in the scope of
the class containing the friend declaration.
3) g++ 2.95 accepted this code without error (regression)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="DR209.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="DR209.ii"
Y2xhc3MgQQp7CiAgY2xhc3MgSW5uZXIge307CiAgSW5uZXIgZiAoSW5uZXIpOwogIHB1YmxpYzoK
ICBBICgpOwp9OwoKY2xhc3MgQgp7CiAgZnJpZW5kIEE6OklubmVyIEE6OmYgKElubmVyKTsKICBm
cmllbmQgY2xhc3MgQTo6SW5uZXI7CiAgaW50IHQ7Cn07CgpBOjpJbm5lciBBOjpmIChJbm5lciB0
KQp7CiAgQiBiOwogIGIudCA9IDE7CiAgcmV0dXJuIHQ7Cn0K