https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87857
--- Comment #3 from Stas Sergeev ---
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 dis
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87857
--- Comment #2 from Andreas Schwab ---
1<<31 is undefined in C, but not in C++ (since C++14).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87857
--- Comment #1 from Andrew Pinski ---
1 << 31 is undefined for C99 ...