https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88646
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Signed integer overflow is undefined. In the case of short and signed char, the operations are promoted to int due to the way C++ works.