public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9823: ICE in sort_mem_initializers
@ 2003-02-24  8:06 snyder
  0 siblings, 0 replies; only message in thread
From: snyder @ 2003-02-24  8:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9823
>Category:       c++
>Synopsis:       ICE in sort_mem_initializers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 24 08:06:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     scott snyder
>Release:        3.4 20030224 (experimental)
>Organization:
>Environment:
System: Linux karma 2.4.19-emp_2419p5a829i #1 Tue Sep 3 17:42:17 EST 2002 i686 unknown
Architecture: i686

	
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc/configure --prefix=/usr/local/gcc --enable-threads=posix --enable-long-long : (reconfigured) 
>Description:

g++ crashes on the (invalid) code below:
[sss@karma gcc]$ ./cc1plus x.cc
x.cc:1: error: `ACE_Process_Descriptor' is not a class-name or namespace-name
x.cc:2: error: ISO C++ forbids declaration of `ACE_Process_Descriptor' with no 
   type
 int ACE_Process_Descriptor()
x.cc:2: error: only constructors take base initializers
x.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
$

Here's where it's crashing:

Program received signal SIGSEGV, Segmentation fault.
0x08179227 in sort_mem_initializers (t=0x0, mem_inits=0x0) at ../../gcc/gcc/cp/init.c:480
480	  for (base = CLASSTYPE_VBASECLASSES (t); base; base = TREE_CHAIN (base))
(gdb) where
#0  0x08179227 in sort_mem_initializers (t=0x0, mem_inits=0x0) at ../../gcc/gcc/cp/init.c:480
#1  0x08179dd4 in emit_mem_initializers (mem_inits=0x0) at ../../gcc/gcc/cp/init.c:657
#2  0x081969d5 in finish_mem_initializers (mem_inits=0x0) at ../../gcc/gcc/cp/semantics.c:1168
#3  0x08142dc1 in cp_parser_mem_initializer_list (parser=0x4005f0c0) at ../../gcc/gcc/cp/parser.c:7217
#4  0x08142d4e in cp_parser_ctor_initializer_opt (parser=0x4005f0c0) at ../../gcc/gcc/cp/parser.c:7176
#5  0x08147688 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x4005f0c0) at ../../gcc/gcc/cp/parser.c:11091
#6  0x0814bc6d in cp_parser_function_definition_after_declarator (parser=0x4005f0c0, inline_p=false) at ../../gcc/gcc/cp/parser.c:13836
#7  0x0814bb98 in cp_parser_function_definition_from_specifiers_and_declarator (parser=0x4005f0c0, decl_specifiers=0x0, attributes=0x0, declarator=0x40029aa0) at ../../gcc/gcc/cp/parser.c:13782
...


>How-To-Repeat:

-----------------------
ACE_Process_Descriptor::ACE_Process_Descriptor ()
  : process_ (0)
{
}
-----------------------

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-24  8:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-24  8:06 c++/9823: ICE in sort_mem_initializers snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).