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

schreppers at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Apr 13 10:33:00 GMT 2007



------- 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 -0000, pinskia at gcc dot gnu dot org
<gcc-bugzilla@gcc.gnu.org> wrote:
>
>
> ------- 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
>
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31545



More information about the Gcc-bugs mailing list