This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11474] -Wreturn-type should default to on when compiling C++
- From: "lloyd at randombit dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jul 2003 16:39:06 -0000
- Subject: [Bug c++/11474] -Wreturn-type should default to on when compiling C++
- References: <20030709142428.11474.lloyd@randombit.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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 lloyd at randombit dot net 2003-07-13 16:39 -------
Obviously I was wrong about it being an standard-mandated diagnostic (I suppose
I should have checked the standard first, I just assumed). However, if the
behavior when encoutering this is undefined, then a warning is fine as far as
the standard is concerned, correct?