[Bug c++/91215] Compiled program loops endlessly because of -O2 with g++ 8.3.0
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 19 19:52:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91215
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
In C++ (unlike C), fallthrough to end block where the return type is not void
is undefined. In C, only when the value that is returned is undefined.
More information about the Gcc-bugs
mailing list