[Bug c++/11474] -Wreturn-type should default to on when compiling C++
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Wed Jul 9 14:39:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11474
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-07-09 14:39 -------
No. 6.6.3/2 says
[...] Flowing off the end of a function is equivalent to a return with
no value; this results in undefined behavior in a value-returning
function.
It specifically does not say that a diagnostic is required.
W.
More information about the Gcc-bugs
mailing list