[Bug sanitizer/87857] case label does not reduce to an integer constant

2018-11-02 Thread stsp at users dot sourceforge.net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87857 --- Comment #5 from Stas Sergeev --- (In reply to Jakub Jelinek from comment #4) > The reason you get an error is that the expression isn't constant, because > it needs to emit the runtime diagnostics. Just fix the bug and get away > with that?

[Bug sanitizer/87857] case label does not reduce to an integer constant

2018-11-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87857 --- Comment #4 from Jakub Jelinek --- The reason you get an error is that the expression isn't constant, because it needs to emit the runtime diagnostics. Just fix the bug and get away with that? 1U<<31 will do.