[Bug c++/67602] unsigned left-shift overflow should not be undefined in c++
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 16 18:52:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67602
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |trippels at gcc dot gnu.org
Resolution|--- |INVALID
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
It should be noted that the C standard appears to allow for undefined behavior
when E2>=N.
It is undefined behavior in C++, too.
More information about the Gcc-bugs
mailing list