This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]