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