From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10715 invoked by alias); 2 Apr 2003 21:59:51 -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 10693 invoked by uid 48); 2 Apr 2003 21:59:51 -0000 Date: Wed, 02 Apr 2003 21:59:00 -0000 Message-ID: <20030402215951.10692.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sbdep@woot.net From: ehrhardt@mathematik.uni-ulm.de Reply-To: ehrhardt@mathematik.uni-ulm.de, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, sbdep@woot.net, gcc-gnats@gcc.gnu.org Subject: Re: other/10294: ICE when declaring a variable within switch statement X-SW-Source: 2003-04/txt/msg00079.txt.bz2 List-Id: Synopsis: ICE when declaring a variable within switch statement State-Changed-From-To: open->closed State-Changed-By: cae State-Changed-When: Wed Apr 2 21:59:51 2003 State-Changed-Why: I can confirm this with 3.2.3, the condition is that the class has a destructor. A reduced testcase is: struct vector { vector () {} ~vector() {} }; int main (int argc) { switch (argc) { vector c; case '3': break; } return 0; } However, this is fixed in 3.3 and 3.4 and 3.2 gives a reasonable error message before the ICE, i.e. this will not give the Internal Compiler Error message on the release, instead it will say something like "confused by earlier error. Bailing out." The summary of all this is, that this bug probably won't be fixed for 3.2 anymore. regards Christian http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10294