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

decouto@lcs.mit.edu decouto@lcs.mit.edu
Tue May 28 17:16:00 GMT 2002


>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



More information about the Gcc-bugs mailing list