[Bug c++/67602] unsigned left-shift overflow should not be undefined in c++

2015-09-16 Thread huntting at glarp dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67602 --- Comment #3 from Brad Huntting --- Oops. I missed that part. Thanks. brad On Wed, Sep 16, 2015 at 12:56 PM, miyuki at gcc dot gnu.org < gcc-bugzi...@gcc.gnu.org> wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67602 > > --- Comment

[Bug c++/67602] unsigned left-shift overflow should not be undefined in c++

2015-09-16 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67602 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/67602] unsigned left-shift overflow should not be undefined in c++

2015-09-16 Thread miyuki at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67602 --- Comment #2 from Mikhail Maltsev --- (In reply to Brad Huntting from comment #0) > It should be noted that the C standard appears to allow for undefined > behavior when E2>=N. And so does the C++ standard: "... The behavior is undefined if