This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47749] Wrong function return value
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 28 Sep 2011 15:41:27 +0000
- Subject: [Bug c++/47749] Wrong function return value
- Auto-submitted: auto-generated
- References: <bug-47749-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47749
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-28 15:41:27 UTC ---
Yep, [stmt.return]/2 "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."