https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77683
Bug ID: 77683 Summary: ICE on %lf directive in format_floating in /src/gcc-svn/gcc/gimple-ssa-sprintf.c:1163 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: msebor at gcc dot gnu.org Target Milestone: --- The gimple-ssa-sprintf.c pass crashes on a %lf directive: $ cat v.c && /build/gcc-trunk-svn/gcc/xgcc -B /build/gcc-trunk-svn/gcc -S -Wall -Wformat -Wextra -Wpedantic v.c char d [3]; void f (double x) { __builtin_sprintf (d, "%lf", x); } v.c: In function âfâ: v.c:3:6: internal compiler error: in format_floating, at gimple-ssa-sprintf.c:1163 void f (double x) ^ 0x181ba7e format_floating /src/gcc-svn/gcc/gimple-ssa-sprintf.c:1163 0x181c8b2 format_floating /src/gcc-svn/gcc/gimple-ssa-sprintf.c:1373 0x181d144 format_directive /src/gcc-svn/gcc/gimple-ssa-sprintf.c:1626 0x181e794 compute_format_length /src/gcc-svn/gcc/gimple-ssa-sprintf.c:2320 0x181f516 handle_gimple_call /src/gcc-svn/gcc/gimple-ssa-sprintf.c:2645 0x181f5f1 execute /src/gcc-svn/gcc/gimple-ssa-sprintf.c:2671 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.