[Bug c++/31545] No warning on missing return in if construct

2007-04-13 Thread pinskia at gcc dot gnu dot org
--- 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

[Bug c++/31545] No warning on missing return in if construct

2007-04-13 Thread schreppers at gmail dot com
--- Comment #3 from schreppers at gmail dot com 2007-04-13 11:32 --- Subject: Re: No warning on missing return in if construct Ah ok, great! Hope the fixes arrive soon in darwin too :D On 13 Apr 2007 07:47:05 -, pinskia at gcc dot gnu dot org [EMAIL PROTECTED] wrote: ---

[Bug c++/31545] No warning on missing return in if construct

2007-04-13 Thread walter at schreppers dot com
--- Comment #4 from walter at schreppers dot com 2007-04-13 11:36 --- Apparantly this has been fixed in some newer version of g++. Keep up the good work! -- walter at schreppers dot com changed: What|Removed |Added

[Bug c++/31545] No warning on missing return in if construct

2007-04-12 Thread walter at schreppers dot com
--- Comment #1 from walter at schreppers dot com 2007-04-12 10:55 --- Created an attachment (id=13355) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13355action=view) Compile with any optimization (i used -O2) A similar type of bug occured to me a lot in the past. When using if's