[Bug c/67279] -fsanitize=undefined spurious error: initializer element is not constant

zeccav at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Aug 20 07:15:00 GMT 2015


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

--- Comment #6 from Vittorio Zecca <zeccav at gmail dot com> ---
On my side it has to do with the C standard.
Compilation with -ansi or -std=c90 is successful.
Compilation with -std=c99 fails.
Compiling with g++ is OK.

The behaviour I would like to see is a warning at compile time
and a runtime error: message at run time.



More information about the Gcc-bugs mailing list