https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77740
Martin Sebor changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77740
--- Comment #3 from Martin Liška ---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77740
Martin Liška changed:
What|Removed |Added
Keywords||ice-on-valid-code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77740
Richard Biener changed:
What|Removed |Added
Keywords||diagnostic
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77740
--- Comment #1 from Gerald Pfeifer ---
The minimum invocation to reproduce the issue is
/some/where/gcc -c math.i -Wall -O1
Both warnings _and_ at least -O1 are required.