[Bug c++/87515] "no return statement in function returning non-void" miscompiles with optimizations
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Jun 13 11:51:47 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87515
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
You can always use -Werror=return-type, or -fsanitize=undefined which will
diagnose it at runtime.
More information about the Gcc-bugs
mailing list