public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/14898] New: Fails to detect missing "return" @ 2004-04-09 2:44 igodard at pacbell dot net 2004-04-09 2:45 ` [Bug c++/14898] " igodard at pacbell dot net ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: igodard at pacbell dot net @ 2004-04-09 2:44 UTC (permalink / raw) To: gcc-bugs App segv's because called inline function has no "return" statement; compile reports no error. While I suppose this is legal, it is distinctly unfriendly. -- Summary: Fails to detect missing "return" Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14898 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14898] Fails to detect missing "return" 2004-04-09 2:44 [Bug c++/14898] New: Fails to detect missing "return" igodard at pacbell dot net @ 2004-04-09 2:45 ` igodard at pacbell dot net 2004-04-09 2:49 ` igodard at pacbell dot net 2004-04-09 2:52 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: igodard at pacbell dot net @ 2004-04-09 2:45 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From igodard at pacbell dot net 2004-04-09 02:45 ------- Created an attachment (id=6066) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6066&action=view) Compiler output (-v -save-temps) Compiles no error -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14898 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14898] Fails to detect missing "return" 2004-04-09 2:44 [Bug c++/14898] New: Fails to detect missing "return" igodard at pacbell dot net 2004-04-09 2:45 ` [Bug c++/14898] " igodard at pacbell dot net @ 2004-04-09 2:49 ` igodard at pacbell dot net 2004-04-09 2:52 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: igodard at pacbell dot net @ 2004-04-09 2:49 UTC (permalink / raw) To: gcc-bugs ------- 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/14898] Fails to detect missing "return" 2004-04-09 2:44 [Bug c++/14898] New: Fails to detect missing "return" igodard at pacbell dot net 2004-04-09 2:45 ` [Bug c++/14898] " igodard at pacbell dot net 2004-04-09 2:49 ` igodard at pacbell dot net @ 2004-04-09 2:52 ` pinskia at gcc dot gnu dot org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-04-09 2:52 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-09 02:52 ------- You should be using -Wall or -Wreturn-type which does warn in 3.3.1. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14898 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-04-09 2:52 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-04-09 2:44 [Bug c++/14898] New: Fails to detect missing "return" igodard at pacbell dot net 2004-04-09 2:45 ` [Bug c++/14898] " igodard at pacbell dot net 2004-04-09 2:49 ` igodard at pacbell dot net 2004-04-09 2:52 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).