This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15912] No warnings emitted for non-void functions with missing return values
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jun 2004 19:36:23 -0000
- Subject: [Bug c++/15912] No warnings emitted for non-void functions with missing return values
- References: <20040610191841.15912.jan@etpmod.phys.tue.nl>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-10 19:36 -------
For part 1, it looks like you are mis reading what it says, it says that functions without a return-types
are always an error in C++ aka:
f() { return 1;} //ERROR
For part 2, this is a dup of bug 14107, the bug is a known regression from 3.4.0.
So closing this as a dup of bug 14107.
*** This bug has been marked as a duplicate of 14107 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Keywords| |diagnostic, documentation
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15912