This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/87857] case label does not reduce to an integer constant
- From: "stsp at users dot sourceforge.net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 01 Nov 2018 22:17:04 +0000
- Subject: [Bug c/87857] case label does not reduce to an integer constant
- Auto-submitted: auto-generated
- References: <bug-87857-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87857
--- Comment #3 from Stas Sergeev <stsp at users dot sourceforge.net> ---
So a clang bug?
I wonder if ubsan is supposed to produce the
compile-time errors, rather than the run-time
warnings. Would it be possible to downgrade
this to a compile-time warning, and/or add a
switch to disable it?
IMHO its absolutely unexpected to get the
compilation failure just because of ubsan.