This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/77740] [7 regression] internal compiler error: in format_floating, at gimple-ssa-sprintf.c:1165
- From: "marxin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Sep 2016 07:29:39 +0000
- Subject: [Bug middle-end/77740] [7 regression] internal compiler error: in format_floating, at gimple-ssa-sprintf.c:1165
- Auto-submitted: auto-generated
- References: <bug-77740-4@http.gcc.gnu.org/bugzilla/>
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