[Bug c++/87515] "no return statement in function returning non-void" miscompiles with optimizations

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 4 15:45:00 GMT 2018


--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note in c++, when there is no return, the code is undefined while in c, it is
only undefined if the return value is used.

More information about the Gcc-bugs mailing list