From mboxrd@z Thu Jan 1 00:00:00 1970 From: mark@codesourcery.com To: gcc-gnats@gcc.gnu.org Subject: c++/3663: G++ doesn't check access control during template instanation Date: Thu, 12 Jul 2001 10:36:00 -0000 Message-id: <20010712173530.23836.qmail@sourceware.cygnus.com> X-SW-Source: 2001-07/msg00339.html List-Id: >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::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