From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11848 invoked by alias); 9 Jul 2002 22:06:02 -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 11822 invoked by uid 71); 9 Jul 2002 22:06:01 -0000 Resent-Date: 9 Jul 2002 22:06:01 -0000 Resent-Message-ID: <20020709220601.11821.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, snyder@fnal.gov Received: (qmail 7581 invoked from network); 9 Jul 2002 21:57:13 -0000 Received: from unknown (HELO karma.fnal.gov) (129.15.206.102) by sources.redhat.com with SMTP; 9 Jul 2002 21:57:13 -0000 Received: (from sss@localhost) by karma.fnal.gov (8.11.6/8.11.6) id g69LrW230997; Tue, 9 Jul 2002 16:53:32 -0500 Message-Id: <200207092153.g69LrW230997@karma.fnal.gov> Date: Tue, 09 Jul 2002 15:06:00 -0000 From: snyder@fnal.gov Reply-To: snyder@fnal.gov To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: 3.113 Subject: c++/7252: g++ 3.2: ICE in constructor_name_full X-SW-Source: 2002-07/txt/msg00280.txt.bz2 List-Id: >Number: 7252 >Category: c++ >Synopsis: g++ 3.2: ICE in constructor_name_full >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: ice-on-illegal-code >Submitter-Id: net >Arrival-Date: Tue Jul 09 15:06:00 PDT 2002 >Closed-Date: >Last-Modified: >Originator: scott snyder >Release: 3.2 20020709 (experimental) >Organization: >Environment: System: Linux karma 2.4.9-13 #1 Tue Oct 30 20:11:04 EST 2001 i686 unknown Architecture: i686 host: i686-pc-linux-gnu build: i686-pc-linux-gnu target: i686-pc-linux-gnu configured with: ../egcs/configure --prefix=/usr/local/egcs --enable-threads=posix --enable-long-long : (reconfigured) : (reconfigured) >Description: gcc crashes on the (invalid) source below. $ cc1plus crash.cc crash.cc:1: error: parse error before `>' token crash.cc:4: error: definition of `struct locale' inside template parameter list crash.cc:5: internal compiler error: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions. $ Here's where it's crashing: Program received signal SIGSEGV, Segmentation fault. 0x0811117d in constructor_name_full (thing=0x0) at ../../egcs/gcc/cp/decl2.c:1777 1777 if (TREE_CODE (thing) == TEMPLATE_TYPE_PARM (gdb) where #0 0x0811117d in constructor_name_full (thing=0x0) at ../../egcs/gcc/cp/decl2.c:1777 #1 0x081116d1 in constructor_name (thing=0x0) at ../../egcs/gcc/cp/decl2.c:1807 #2 0x0808f5f4 in grokdeclarator (declarator=0x40190b80, declspecs=0x4018c320, decl_context=FIELD, initialized=0, attrlist=0xbfffb560) at ../../egcs/gcc/cp/decl.c:11248 #3 0x08110086 in grokfield (declarator=0x40190b80, declspecs=0x4018c320, init=0x0, asmspec_tree=0x0, attrlist=0x0) at ../../egcs/gcc/cp/decl2.c:1490 #4 0x08134814 in parse_field (declarator=0x40190b80, attributes=0x0, asmspec=0x0, init=0x0) at parse.y:210 #5 0x08134860 in parse_field0 (declarator=0x40190b80, specs_attrs=0x4018c320, lookups=0x0, attributes=0x0, asmspec=0x0, init=0x0) at parse.y:221 #6 0x0813b8cc in yyparse () at parse.y:2781 #7 0x081d014c in c_common_parse_file (set_yydebug=0) at ../../egcs/gcc/c-lex.c:165 #8 0x08406ded in compile_file () at ../../egcs/gcc/toplev.c:2101 >How-To-Repeat: ------------------ template class num_get; struct locale { typedef unsigned int category; }; ------------------ >Fix: >Release-Note: >Audit-Trail: >Unformatted: