From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19056 invoked by alias); 25 Sep 2002 21:36: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 19036 invoked by uid 71); 25 Sep 2002 21:36:01 -0000 Resent-Date: 25 Sep 2002 21:36:01 -0000 Resent-Message-ID: <20020925213601.19035.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, andrewp@andypo.net Received: (qmail 18477 invoked from network); 25 Sep 2002 21:31:13 -0000 Received: from unknown (HELO mta05-svc.ntlworld.com) (62.253.162.45) by sources.redhat.com with SMTP; 25 Sep 2002 21:31:13 -0000 Received: from garfield.andypo.net ([213.104.147.105]) by mta05-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020925213111.VNPW13996.mta05-svc.ntlworld.com@garfield.andypo.net> for ; Wed, 25 Sep 2002 22:31:11 +0100 Received: (from andrewp@localhost) by garfield.andypo.net (8.11.6/8.11.6) id g8PLUad23041; Wed, 25 Sep 2002 22:30:36 +0100 Message-Id: <200209252130.g8PLUad23041@garfield.andypo.net> Date: Wed, 25 Sep 2002 14:36:00 -0000 From: andrewp@andypo.net To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/8046: ICE on (admittedly very silly) input X-SW-Source: 2002-09/txt/msg00685.txt.bz2 List-Id: >Number: 8046 >Category: c++ >Synopsis: ICE on (admittedly very silly) input >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Wed Sep 25 14:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Andrew Pollard >Release: 3.2.1 20020914 (prerelease) >Organization: >Environment: System: Linux garfield.andypo.net 2.4.18-10smp #1 SMP Wed Aug 7 11:17:48 EDT 2002 i686 unknown Binutils: 2.13.90.0.4 Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: /usr/local/src/cvs/gcc-3_2-branch/configure --prefix=/usr/local/gcc-3.2.1-20020914-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --enable-version-specific-runtime-libs --enable-threads=posix --with-dwarf2 --disable-shared --enable-languages=c++ --enable-__cxa_atexit >Description: The following (admittedly very silly) code fragment causes an ICE in all gcc versions I tried (gcc-2.96/gcc-3.0.5/gcc-3.2.1/gcc-3.3) ice.cxx ---------------------- struct A {}; namespace a {} void foo() { A a; a::~A(); } ---------------------- % gcc -v Reading specs from /usr/local/gcc-3.2.1-20020914-i686-pc-linux-gnu/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/specs Configured with: /usr/local/src/cvs/gcc-3_2-branch/configure --prefix=/usr/local/gcc-3.2.1-20020914-i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --enable-version-specific-runtime-libs --enable-threads=posix --with-dwarf2 --disable-shared --enable-languages=c++ --enable-__cxa_atexit Thread model: posix gcc version 3.2.1 20020914 (prerelease) % g++ ice.cxx ice.cxx: In function `void foo()': ice.cxx:8: Internal compiler error in lookup_namespace_name, at cp/decl.c:5532 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. This was distilled from a much larger piece of code, but, basically, what I meant to do was a.~A(); and not a::~A(); to call the destructor. A polite error message pointing out that I had submitted complete garbage to the compiler would have been better than the ICE :-) >How-To-Repeat: Compile the above code fragment. >Fix: Don't do something as daft as what I actually did. >Release-Note: >Audit-Trail: >Unformatted: