This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/67279] -fsanitize=undefined spurious error: initializer element is not constant
- From: "zeccav at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Aug 2015 07:15:31 +0000
- Subject: [Bug c/67279] -fsanitize=undefined spurious error: initializer element is not constant
- Auto-submitted: auto-generated
- References: <bug-67279-4 at http dot gcc dot gnu dot org/bugzilla/>
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.