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++/11474] -Wreturn-type should default to on when compiling C++


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



------- Additional Comments From gdr at integrable-solutions dot net  2003-07-13 07:40 -------
Subject: Re:  New: -Wreturn-type should default to on when compiling C++

"lloyd at randombit dot net" <gcc-bugzilla@gcc.gnu.org> writes:

| This is pretty simple - when using C++, -Wreturn-type should a) always be on,
| and b) always cause an error, since not returning correctly from the function
| is ALWAYS an error in C++

The last statement is untrue.  

-- Gaby


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