From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11862 invoked by alias); 23 Dec 2002 00:46: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 11803 invoked by uid 71); 23 Dec 2002 00:46:00 -0000 Resent-Date: 23 Dec 2002 00:46:00 -0000 Resent-Message-ID: <20021223004600.11802.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, mec@shout.net Received: (qmail 10335 invoked by uid 61); 23 Dec 2002 00:44:56 -0000 Message-Id: <20021223004456.10334.qmail@sources.redhat.com> Date: Sun, 22 Dec 2002 16:46:00 -0000 From: mec@shout.net Reply-To: mec@shout.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: debug/9039: ICE, anonymous union, gen_decl_die, dwarf2out.c:11974 X-SW-Source: 2002-12/txt/msg01225.txt.bz2 List-Id: >Number: 9039 >Category: debug >Synopsis: ICE, anonymous union, gen_decl_die, dwarf2out.c:11974 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Sun Dec 22 16:46:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: mec@shout.net >Release: gcc HEAD%20021221 >Organization: >Environment: target = native host = i686-pc-linux-gnu (red hat linux 8) gcc = gcc HEAD%20021221 binutils = 2.13.1 gformat = dwarf-2 I checked out gcc HEAD from :pserver:anoncvs:@subversions.gnu.org:/cvsroot/gcc. My checkout started at 2002-12-21T16:26:28Z and ended at 2002-12-21T16:30:31Z. Unfortunately, I'm not running ntp, so those nice timestamps are actually 5-10 minutes slow. >Description: g++ gives an ICE on a small function with an anonymous union when generateing dwarf-2 debugging information. The code is: int foo() { union { int z; unsigned int w; }; w = 0; return 0; } >How-To-Repeat: Compiler invocation line: gcc -v -S -gdwarf-2 z1.cc > z1.out 2>&1 z1.out The file attachment has the exact output from "z1.out" along with a copy of the source code and essentiallly all the information from this form. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="REPORT.txt" Content-Disposition: inline; filename="REPORT.txt" anon-union-ice Michael Chastain, 2002-12-22 Synopsis: ICE, anonymous union, gen_decl_die, dwarf2out.c: 11974 Configuration: target = native host = i686-pc-linux-gnu (red hat linux 8) gcc = gcc HEAD%20021221 binutils = 2.13.1 gformat = dwarf-2 I downloaded gcc HEAD with a cvs checkout command which started at 2002-12-21T16:26:28Z and ended at 2002-12-21T16:30:31Z. (Unfortunately, I'm not running ntp, and my clock is about five minutes fast right now, which fuzzes up my nice time markers). Compiler invocation line: gcc -v -S -gdwarf-2 z1.cc > z1.out 2>&1 Compiler output: Reading specs from /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/lib/gcc-lib/i686-pc-linux-gnu/3.4/specs Configured with: Thread model: posix gcc version 3.4 20021221 (experimental) /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/lib/gcc-lib/i686-pc-linux-gnu/3.4/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=4 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE z1.cc -D__GNUG__=3 -quiet -dumpbase z1.cc -auxbase z1 -gdwarf-2 -version -o z1.s GNU C++ version 3.4 20021221 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 3.2.1. ignoring nonexistent directory "/berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/i686-pc-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/include/c++/3.4 /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/include/c++/3.4/i686-pc-linux-gnu /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/include/c++/3.4/backward /usr/local/include /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/include /berman/fsf/_today_/berman/native/install/gcc/gcc-HEAD-binutils-2.13.1/lib/gcc-lib/i686-pc-linux-gnu/3.4/include /usr/include End of search list. z1.cc: In function `int foo()': z1.cc:11: internal compiler error: in gen_decl_die, at dwarf2out.c:11974 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Contents of z1.cc: int foo() { union { int z; unsigned int w; }; w = 0; return 0; }