Hi, 

this testcase fails to produce a "return value missing" diagnostic: 

=== Cut ===

class test
{
    bool fii(test* other)
    {
        if (!other) return false;
    }

};

=== Cut ===

Interestingly, it works when declared outside the class itself, which makes me
suspect that this is caused by some C++ parser oddity.


-- 
           Summary: missing diagnostic when declared inline in class
                    declaration
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mueller at gcc dot gnu dot org


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

Reply via email to