This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/47749] Wrong function return value


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]