[Bug c++/27456] Compiler allows function not returning value to be used

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sat May 6 14:57:00 GMT 2006



------- Comment #1 from rguenth at gcc dot gnu dot org  2006-05-06 14:57 -------
It says "warning: control reaches end of non-void function", also the code is
not invalid, but undefined, thus you get a segfault.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27456



More information about the Gcc-bugs mailing list