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 c/67279] -fsanitize=undefined spurious error: initializer element is not constant


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.


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