This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33425] GCC Compiles C++ program containing value-returning functions that don't return a value
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Sep 2007 20:57:28 -0000
- Subject: [Bug c++/33425] GCC Compiles C++ program containing value-returning functions that don't return a value
- References: <bug-33425-15094@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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