------- Comment #1 from pluto at agmk dot net  2006-05-18 10:12 -------
#include <string>
bool foo( bool b1, bool b2 )
{
        std::string what;
        std::size_t size = what.size();
        if ( b1 && size )
        {
                if ( b2 )
                        return true;
                else
                        return false;
        }
        else
                return false;
}

$ i486-gnu-linux-g++ bug2.cpp -c -Wall -Os
bug2.cpp: In function 'bool foo(bool, bool)':
bug2.cpp:15: warning: control reaches end of non-void function


-- 


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

Reply via email to