[Bug c/99707] missing -Woverflow warning in floating-point to integer conversion for known but non-constant value
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 22 10:05:53 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99707
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also this might be caught at runtime with -fsanitizer=undefined but I have not
tried yet. Since this is undefined behavior in this case unlike the original
PR93806.
More information about the Gcc-bugs
mailing list