[Bug c/87346] The compiler of the old version (for example: 4.9.3 version or 6.3.0 version) can stop the infinite cross-border loop, but the new version does not work.
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 18 07:32:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87346
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Again this has nothing to do with the loop but rather the return value.
If you want to detect this at runtime, you can use -fsantize=undefined .
*** This bug has been marked as a duplicate of bug 87345 ***
More information about the Gcc-bugs
mailing list