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++/33425] GCC Compiles C++ program containing value-returning functions that don't return a value



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


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