http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54838
Bug #: 54838 Summary: [4.8 Regression] ICE: in merge_latch_edges, at cfgloop.c:678 with -O2 -ftracer -fno-tree-dce -fno-tree-sra Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 28376 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28376 reduced testcase Compiler output: $ gcc -O2 -ftracer -fno-tree-dce -fno-tree-sra testcase.C testcase.C: In function '_ForwardIterator1 search(_ForwardIterator1, _ForwardIterator1)': testcase.C:113:3: internal compiler error: in merge_latch_edges, at cfgloop.c:678 } ^ 0x840a29 merge_latch_edges /mnt/svn/gcc-trunk/gcc/cfgloop.c:678 0x840a29 disambiguate_multiple_latches /mnt/svn/gcc-trunk/gcc/cfgloop.c:741 0x840a29 disambiguate_loops_with_multiple_latches() /mnt/svn/gcc-trunk/gcc/cfgloop.c:755 0xa49ed4 loop_optimizer_init(unsigned int) /mnt/svn/gcc-trunk/gcc/loop-init.c:78 0x12084de fwprop_init /mnt/svn/gcc-trunk/gcc/fwprop.c:1412 0x120869a fwprop /mnt/svn/gcc-trunk/gcc/fwprop.c:1459 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r192080 - crash r191586 - crash 4.7 r191640 - OK