This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3914: gcc 3.0 does not complain about missing return statements in fn's
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, georg dot ritter at cern dot ch, nobody at gcc dot gnu dot org
- Subject: Re: c++/3914: gcc 3.0 does not complain about missing return statements in fn's
- From: aoliva at gcc dot gnu dot org
- Date: 2 Aug 2001 17:27:01 -0000
Synopsis: gcc 3.0 does not complain about missing return statements in fn's
State-Changed-From-To: open->closed
State-Changed-By: aoliva
State-Changed-When: Thu Aug 2 10:27:01 2001
State-Changed-Why:
The code is not illegal, it just invokes undefined behavior. Use -W and GCC will warn about it.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3914&database=gcc