------- Comment #1 from rguenth at gcc dot gnu dot org 2010-04-27 09:41 ------- The ICE has been fixed on the trunk (PR42653). With the fix we now run into
lto1: internal compiler error: in dwarf2out_finish, at dwarf2out.c:21433 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. #2 0x00000000005cbe94 in dwarf2out_finish (filename=0x15f9040 "t.o") at /space/rguenther/src/svn/trunk/gcc/dwarf2out.c:21431 21431 gcc_assert (context (gdb) l 21426 if (DECL_P (node->created_for)) 21427 context = DECL_CONTEXT (node->created_for); 21428 else if (TYPE_P (node->created_for)) 21429 context = TYPE_CONTEXT (node->created_for); 21430 21431 gcc_assert (context 21432 && (TREE_CODE (context) == FUNCTION_DECL 21433 || TREE_CODE (context) == NAMESPACE_DECL)); 21434 21435 origin = lookup_decl_die (context); (gdb) p context $1 = (tree) 0x7ffff5af0b28 (gdb) p context->base.code $2 = RECORD_TYPE -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |lto Last reconfirmed|0000-00-00 00:00:00 |2010-04-27 09:41:34 date| | Summary|-flto -g: "tree check: |-flto -g: ICE in |expected class 'type', have |dwarf2out_finish, at |'declaration'" |dwarf2out.c:21433 Version|4.5.0 |4.6.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43898