[Bug c++/103826] Bogus shift-negative-value warning in C++20 mode

2021-12-25 Thread manx-bugzilla at problemloesungsmaschine dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103826 --- Comment #2 from Jörn Heusipp --- (In reply to Andrew Pinski from comment #1) > Note I notice clang warns about: > int main() { > return (0x7000') << 4; > } It's valid, but clang complains here about shifting bits out of the range

[Bug c++/103826] Bogus shift-negative-value warning in C++20 mode

2021-12-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103826 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|