[Bug c++/33425] GCC Compiles C++ program containing value-returning functions that don't return a value

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Sep 13 20:57:00 GMT 2007



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-09-13 20:57 -------
main.cpp: In function 'bool Func1(int)':
main.cpp:43: warning: control reaches end of non-void function

Actually in C++, this is only undefined behavior.


-- 


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



More information about the Gcc-bugs mailing list