From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31500 invoked by alias); 10 Feb 2003 08:06:01 -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 31479 invoked by uid 71); 10 Feb 2003 08:06:01 -0000 Resent-Date: 10 Feb 2003 08:06:01 -0000 Resent-Message-ID: <20030210080601.31478.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, ebotcazou@libertysurf.fr Received: (qmail 31310 invoked by uid 48); 10 Feb 2003 08:04:37 -0000 Message-Id: <20030210080437.31309.qmail@sources.redhat.com> Date: Mon, 10 Feb 2003 08:06:00 -0000 From: ebotcazou@libertysurf.fr Reply-To: ebotcazou@libertysurf.fr To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/9642: ICE on variable redeclaration X-SW-Source: 2003-02/txt/msg00446.txt.bz2 List-Id: >Number: 9642 >Category: c++ >Synopsis: ICE on variable redeclaration >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Mon Feb 10 08:06:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: Eric Botcazou >Release: gcc 3.2.3 prerelease >Organization: >Environment: RedHat 7.3/i586. >Description: The following code triggers an ICE: void foo(void) { char c; int i; int c = i; } gcc-3.2.3 -c -x c++ decl-2.c decl-2.c: In function `void foo()': decl-2.c:9: conflicting types for `int c' decl-2.c:7: previous declaration as `char c' decl-2.c:7: Internal compiler error in make_decl_rtl, at varasm.c:834 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. See PR c/7741 (the C front-end counterpart) for the analysis. >How-To-Repeat: Compile the code snippet. >Fix: The fix applied to the C front-end is to discard the initializer on the second declaration. I don't know if this is relevant for the C++ front-end. >Release-Note: >Audit-Trail: >Unformatted: