From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11705 invoked by alias); 12 Feb 2002 13:46:07 -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 11640 invoked by uid 71); 12 Feb 2002 13:46:02 -0000 Date: Tue, 12 Feb 2002 05:46:00 -0000 Message-ID: <20020212134601.11638.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Reichelt Subject: Re: c++/5661: Gcc 3.0.3 Seg faults compiling bad code Reply-To: Reichelt X-SW-Source: 2002-02/txt/msg00271.txt.bz2 List-Id: The following reply was made to PR c++/5661; it has been noted by GNATS. From: Reichelt To: adrian.cornish@bluedreamer.com, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/5661: Gcc 3.0.3 Seg faults compiling bad code Date: Tue, 12 Feb 2002 15:04:20 +0100 Hi, the problem can be reduced to the following code, which causes an ICE with gcc 3.1 20020204 (experimental) on i686-pc-linux-gnu and mips-sgi-irix6.5: -------------------snip here-------------------- template struct A { A() throw() {} }; struct B { static const int s; A a; // illegal, constant value not known }; const int B::s=16; B b; -------------------snip here-------------------- The error message is: PR5661.cpp: In constructor `B::B()': PR5661.cpp:14: internal error: Segmentation fault Please submit a full bug report, [etc.] Greetings, Volker Reichelt http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5661