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

Richard Yao <ryao at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |---

--- Comment #3 from Richard Yao <ryao at gentoo dot org> ---
It says "reject all programs that use forbidden extensions, and some other
programs that do not follow ISO C and ISO C++." This is C++ extension as far as
ISO C is concerned:

"A return statement with an operand of type void shall be used only in a
function whose return type is cv void."

http://eel.is/c++draft/stmt.return

Reply via email to