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++/31545] No warning on missing return in if construct



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


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