This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/9823: ICE in sort_mem_initializers


>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 at 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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]