http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57412
Bug ID: 57412 Summary: [4.9 Regression] ICE: in verify_loop_structure, at cfgloop.c:1647: loop 1's latch does not have an edge to its header with -fopenmp -fipa-pure-const Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 30190 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30190&action=edit reduced testcase Compiler output: $ gcc -fopenmp -fipa-pure-const testcase.C testcase.C: In function '<built-in>': testcase.C:8:1: error: loop 1's latch does not have an edge to its header } ^ testcase.C:8:1: internal compiler error: in verify_loop_structure, at cfgloop.c:1647 0x8513ae verify_loop_structure() /mnt/svn/gcc-trunk/gcc/cfgloop.c:1647 0xa7e928 loop_optimizer_init(unsigned int) /mnt/svn/gcc-trunk/gcc/loop-init.c:110 0x12fb799 analyze_function /mnt/svn/gcc-trunk/gcc/ipa-pure-const.c:786 0x12fbe69 generate_summary /mnt/svn/gcc-trunk/gcc/ipa-pure-const.c:929 0xaf70de execute_ipa_summary_passes(ipa_opt_pass_d*) /mnt/svn/gcc-trunk/gcc/passes.c:2136 0x872db0 ipa_passes /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1903 0x872db0 compile() /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1999 0x872fe9 finalize_compilation_unit() /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2127 0x685040 cp_write_global_declarations() /mnt/svn/gcc-trunk/gcc/cp/decl2.c:4327 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. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-199312-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-199312-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20130524 (experimental) (GCC) Tested revisions: r199312 - fail 4.8 r198018 - OK