[Bug c++/14898] Fails to detect missing "return"
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Fri Apr 9 02:49:00 GMT 2004
------- Additional Comments From igodard at pacbell dot net 2004-04-09 02:49 -------
Created an attachment (id=6067)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6067&action=view)
Source code (-save-temps)
inline declaration of operator<< called in line "cout << p << endl" has no
return statement, so the "<< endl" has a null pointer for the stream and
segv's. Template expansion of this operator<< should complain, but doesn't.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14898
More information about the Gcc-bugs
mailing list