This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/29436] [4.0/4.1/4.2 Regression] ICE in modified_type_die
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Oct 2006 09:37:36 -0000
- Subject: [Bug debug/29436] [4.0/4.1/4.2 Regression] ICE in modified_type_die
- References: <bug-29436-12219@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from rguenth at gcc dot gnu dot org 2006-10-17 09:37 -------
I cannot reproduce this any longer with 4.2:
trunk-g/gcc> ./cc1 -quiet t.i -g3 -std=gnu99 -W -Wall -m32
t.i: In function 'handler':
t.i:12: error: incompatible types in assignment
though cc1plus ICEs (differently) now:
trunk-g/gcc> ./cc1plus -quiet t.i -g3 -std=gnu99 -W -Wall -m32
cc1plus: warning: command line option "-std=gnu99" is valid for C/ObjC but not
for C++
t.i: In function 'void handler(void*)':
t.i:11: error: invalid conversion from 'void*' to 'cmonkey*'
t.i:12: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Starting program: /abuild/rguenther/trunk-g/gcc/cc1plus -quiet t.i -g3
-std=gnu99 -W -Wall -m32
cc1plus: warning: command line option "-std=gnu99" is valid for C/ObjC but not
for C++
t.i: In function 'void handler(void*)':
t.i:11: error: invalid conversion from 'void*' to 'cmonkey*'
Program received signal SIGSEGV, Segmentation fault.
0x00000000005aa1b8 in decl_namespace_context (decl=0x2b8e53df20b0)
at /space/rguenther/src/svn/trunk/gcc/cp/tree.c:1391
1391 decl = CP_DECL_CONTEXT (TYPE_MAIN_DECL (decl));
(gdb) print decl->type.main_variant->common.chain
$1 = (tree) 0x0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29436