This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28424] Missing return statement in template function don't cause compiler error
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Jul 2006 18:38:14 -0000
- Subject: [Bug c++/28424] Missing return statement in template function don't cause compiler error
- References: <bug-28424-12976@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from schwab at suse dot de 2006-07-18 18:38 -------
A missing return statement is not an error, merely undefined behaviour. Use
-Wreturn-type to get a warning and -Werror to turn that into an error.
--
schwab at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28424