https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65148
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- I can reproduce the ICE with 4.9.2 but not 5.0. $ /build/gcc-4.9.2/gcc/xg++ -B/build/gcc-4.9.2/gcc -fsanitize=undefined -O2 -c u.c u.c: In function ‘void fn1()’: u.c:7:1: internal compiler error: in get_biv_step, at loop-iv.c:823 } ^ 0x1054dd13 get_biv_step /src/gcc-4.9.2/gcc/loop-iv.c:823 0x1054dd13 iv_analyze_biv /src/gcc-4.9.2/gcc/loop-iv.c:912 0x1054e06b iv_analyze_op /src/gcc-4.9.2/gcc/loop-iv.c:1187 0x1054f303 iv_number_of_iterations /src/gcc-4.9.2/gcc/loop-iv.c:2354 0x1054f303 check_simple_exit /src/gcc-4.9.2/gcc/loop-iv.c:2920 0x1054f303 find_simple_exit(loop*, niter_desc*) /src/gcc-4.9.2/gcc/loop-iv.c:2945 0x10550893 get_simple_loop_desc(loop*) /src/gcc-4.9.2/gcc/loop-iv.c:3026 0x10bd13f3 doloop_optimize /src/gcc-4.9.2/gcc/loop-doloop.c:616 0x10bd13f3 doloop_optimize_loops() /src/gcc-4.9.2/gcc/loop-doloop.c:741 0x1054450f rtl_doloop /src/gcc-4.9.2/gcc/loop-init.c:661 0x1054450f execute /src/gcc-4.9.2/gcc/loop-init.c:692 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.