This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

c++/6850: private nested classes can be accessed by outside code



>Number:         6850
>Category:       c++
>Synopsis:       private nested classes can be accessed by outside code
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Tue May 28 17:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     decouto@lcs.mit.edu
>Release:        2.95.3
>Organization:
>Environment:
FreeBSD 4.5-RELEASE #3: Fri Feb  1 01:47:12 EST 2002    
>Description:
private nested classes can be accessed by outside code.  
>How-To-Repeat:
g++ -Wall foo.cc is successful, no errors reportes
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="foo.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="foo.cc"

CmNsYXNzIEMxIHsKcHVibGljOgogIGludCB4LCB5Owpwcml2YXRlOgogIGNsYXNzIEMyIHsKICBw
dWJsaWM6CiAgICBpbnQgejsKICB9Owp9OwoKY2xhc3MgQzMgewpwdWJsaWM6CiAgdm9pZCBkb2l0
KCkgewogICAgQzE6OkMyIGE7CiAgICBhLnogPSAwOwogIH0KfTsKCgppbnQKbWFpbihpbnQsIGNo
YXIgKiopIHsKCiAgQzMgZjsKICBmLmRvaXQoKTsKfTsK


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