This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2137: friend access and DR 209



>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]