From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 502 invoked by alias); 15 Jan 2002 13:16:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 439 invoked by uid 71); 15 Jan 2002 13:16:01 -0000 Resent-Date: 15 Jan 2002 13:16:01 -0000 Resent-Message-ID: <20020115131601.438.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, Jason Merrill Received:(qmail 31489 invoked from network); 15 Jan 2002 13:13:15 -0000 Received: from unknown (HELO prospero.cambridge.redhat.com) (195.224.55.237) by sources.redhat.com with SMTP; 15 Jan 2002 13:13:15 -0000 Received: (from jason@localhost) by prospero.cambridge.redhat.com (8.11.6/8.11.6) id g0FDDER21547; Tue, 15 Jan 2002 13:13:14 GMT Message-Id:<200201151313.g0FDDER21547@prospero.cambridge.redhat.com> Date: Tue, 15 Jan 2002 05:16:00 -0000 From: Jason Merrill To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: c++/5387: g++ fails to catch use of private type in template X-SW-Source: 2002-01/txt/msg00559.txt.bz2 List-Id: >Number: 5387 >Category: c++ >Synopsis: g++ fails to catch use of private type in template >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: accepts-illegal >Submitter-Id: net >Arrival-Date: Tue Jan 15 05:16:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Jason Merrill >Release: unknown-1.0 >Organization: redhat >Environment: System: Linux prospero.cambridge.redhat.com 2.4.13-0.5 #1 Sat Nov 3 15:08:02 EST 2001 i686 unknown Architecture: i686 >Description: In the testcase below, g++ fails to diagnose the use of B::X in the definition of A::x. >How-To-Repeat: template struct A { typename T::X x; int f() { return T::i; } }; class B { typedef int X; static int i; }; int main() { A ab; ab.f(); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: