From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8597 invoked by alias); 14 Feb 2003 21:40:35 -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 8578 invoked by uid 48); 14 Feb 2003 21:40:34 -0000 Date: Fri, 14 Feb 2003 21:40:00 -0000 Message-ID: <20030214214034.8577.qmail@sources.redhat.com> To: gabriel@dit.upm.es, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org From: bangerth@dealii.org Reply-To: bangerth@dealii.org, gabriel@dit.upm.es, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/9706: Internal error: segmentation fault X-SW-Source: 2003-02/txt/msg00637.txt.bz2 List-Id: Synopsis: Internal error: segmentation fault State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Fri Feb 14 21:40:34 2003 State-Changed-Why: Confirmed. This is a reduced piece of code: ----------------------- class B { struct XXX {}; int XXX; }; template struct Y : B {}; template struct Z : Y {}; ------------------------ This ICEs gcc 2.95 through 3.3, and is accepted by 3.4. I think 3.4 is actually in error here, since you shouldn't be able to have variables and classes of the same name. There's another report already about this problem, but I don't know whether they are really equivalent. W. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9706