c++/3663: G++ doesn't check access control during template instanation
mark@codesourcery.com
mark@codesourcery.com
Thu Jul 12 10:36:00 GMT 2001
>Number: 3663
>Category: c++
>Synopsis: G++ doesn't check access control during template instanation
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Thu Jul 12 10:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: mark@codesourcery.com
>Release: 3.0
>Organization:
>Environment:
>Description:
The attached program sould generate an error during
template instantiation since the `S<int>::T' is not
accessible.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test2.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test2.C"
dGVtcGxhdGUgPHR5cGVuYW1lIEE+CmNsYXNzIFMgewogIGNsYXNzIFQge307Cn07Cgp0ZW1wbGF0
ZSA8dHlwZW5hbWUgQT4KdHlwZW5hbWUgQTo6VCogZiAoQSkgewogIHJldHVybiAwOwp9Cgp2b2lk
IGcgKCkgewogIGYgKFM8aW50PiAoKSk7Cn0K
More information about the Gcc-prs
mailing list