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++/29485] New: missing diagnostic when declared inline in class declaration


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


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