http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46132
Summary: ICE: in force_decl_die, at dwarf2out.c:20525 with -fenable-icf-debug Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 22123 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22123 reduced testcase Compiler output: $ gcc -O -g -fenable-icf-debug pr46132.c pr46132.c: In function 'regex_subst': pr46132.c:5:1: internal compiler error: in force_decl_die, at dwarf2out.c:20525 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Compiler output - 4.5: $ gcc -O -g -fenable-icf-debug pr46132.c pr46132.c: In function 'foo': pr46132.c:4:1: internal compiler error: tree check: expected tree that contains 'decl minimal' structure, have 'string_cst' in lookup_decl_die, at dwarf2out.c:7701 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Another issue with -fenable-icf-debug is PR44689 Tested revisions: r165822 - crash r153685 - crash 4.5 r165781 - crash