This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/77740] [7 regression] internal compiler error: in format_floating, at gimple-ssa-sprintf.c:1165


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77740

--- Comment #3 from Martin Liška <marxin at gcc dot gnu.org> ---
Minimal test-case:

char *MSVCRT__ecvt_data_0;

void foo()
{
  __builtin_snprintf (MSVCRT__ecvt_data_0, 0, "%.*le");
}

On x86_64-linux-gnu, minimal command line causing the ICE:
$ gcc pr77740.i -Wformat

pr77740.i:3:6: internal compiler error: in gimple_call_arg, at gimple.h:3156
 void foo()
      ^~~
0x12686d5 gimple_call_arg
        ../../gcc/gimple.h:3156
0x126872b gimple_call_arg
        ../../gcc/gimple.h:3164
0x126d719 compute_format_length
        ../../gcc/gimple-ssa-sprintf.c:2212
0x126e65f handle_gimple_call
        ../../gcc/gimple-ssa-sprintf.c:2654
0x126e767 execute
        ../../gcc/gimple-ssa-sprintf.c:2680

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]