[Bug c++/31545] No warning on missing return in if construct
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Apr 13 07:47:00 GMT 2007
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-04-13 08:47 -------
This was already fixed:
[pinskia-laptop:gcc/objdir-noboot/gcc] pinskia% ./cc1plus t5.ii -quiet
-fdump-tree-all -W -Wall -O2
t5.cc: In member function 'std::string Test::faultyReturn()':
t5.cc:16: warning: control reaches end of non-void function
I forgot when it was fixed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31545
More information about the Gcc-bugs
mailing list