From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17823 invoked by alias); 10 Dec 2002 22:14:11 -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 17803 invoked by uid 61); 10 Dec 2002 22:14:10 -0000 Date: Tue, 10 Dec 2002 14:14:00 -0000 Message-ID: <20021210221410.17802.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, joona.kiiski@iki.fi, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, joona.kiiski@iki.fi, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/8865: SegFault with local undefined types and templates X-SW-Source: 2002-12/txt/msg00585.txt.bz2 List-Id: Old Synopsis: A way to make g++ crash (segfault) New Synopsis: SegFault with local undefined types and templates State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Tue Dec 10 14:14:09 2002 State-Changed-Why: Confirmed. Here's a testcase that is smaller by about a factor 4000: -------------------------- template struct Base { struct Local; }; template struct Derived: public Base { void g(struct Local) {} }; template class Derived; ------------------------------ This ICEs with all versions since at least 2.95. Presently I get g/server> /home/bangerth/bin/gcc-3.2.2-pre/bin/c++ -c main.ii main.ii:6: warning: `struct Local' declares a new type at namespace scope main.ii:6: warning: names from dependent base classes are not visible to unqualified name lookup - to refer to the inherited type, say `struct Derived::Local' main.ii:6: internal error: Speicherzugriffsfehler Please submit a full bug report, with preprocessed source if appropriate. See for instructions. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8865