[Bug c++/15912] No warnings emitted for non-void functions with missing return values

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Jun 10 19:36:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list