https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98625
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- Fixed with: commit 911f797a9be2dc8ef59f5d5bd6d68baf650b8822 Author: Nathan Sidwell <nat...@acm.org> Date: Wed Jan 20 09:21:02 2021 -0800 c++: Avoid UB in signed shift [PR 98625] I'd forgotten that left shifting a negative value is UB until C++20. Insert some casts to do unsigned shifts. PT c++/98625 gcc/cp/ * module.cc (bytes_in::i, bytes_in::wi): Avoid left shift of signed type. @Nathan: That was very close, s/PT/PR :)