From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2959 invoked by alias); 23 Oct 2002 20:36:47 -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 2924 invoked by uid 61); 23 Oct 2002 20:36:47 -0000 Date: Wed, 23 Oct 2002 13:36:00 -0000 Message-ID: <20021023203647.2923.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sneechy@hotmail.com From: reichelt@igpm.rwth-aachen.de Reply-To: reichelt@igpm.rwth-aachen.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sneechy@hotmail.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/8149: internal error: Segmentation fault X-SW-Source: 2002-10/txt/msg00895.txt.bz2 List-Id: Synopsis: internal error: Segmentation fault State-Changed-From-To: open->analyzed State-Changed-By: reichelt State-Changed-When: Wed Oct 23 13:36:45 2002 State-Changed-Why: Confirmed. The example can be reduced a little bit further: -------------------------snip here------------------------- struct B { template struct C; }; template struct A { typedef typename T::C V; }; A::V p; -------------------------snip here------------------------- Compiling this with "g++ -c" using the 3.2-branch or the main trunk results in an ICE (checked on i686-pc-linux-gnu). With gcc 3.0.x or 2.95.x I get an error message: PR8149.cc:3: aggregate `B::C p' has incomplete type and cannot be initialized PR8149.cc:3: storage size of `p' isn't known Changing "struct C;" to "struct C{};" in the first line to get rid of this message (the rest of the code still remains illegal) causes gcc 3.0.x to issue an ICE and 2.95.x to issue an assembler error. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8149