https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86284

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #3)
> I thought it was defined unless the return value is actually used.

To answer my own question:
For C it is.  For C++ it is not; it is undefined if there is no return value.

Reply via email to