This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/3663: G++ doesn't check access control during template instanation
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/3663: G++ doesn't check access control during template instanation
- From: mark at codesourcery dot com
- Date: 12 Jul 2001 17:35:30 -0000
- Reply-To: mark at codesourcery dot com
>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