Bug ID: 77683
           Summary: ICE on %lf directive in format_floating in
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot
          Reporter: msebor at gcc dot
  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
 void f (double x)
0x181ba7e format_floating
0x181c8b2 format_floating
0x181d144 format_directive
0x181e794 compute_format_length
0x181f516 handle_gimple_call
0x181f5f1 execute
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <> for instructions.

Reply via email to