Since today, I get some duplicate diagnostics:

======================
struct A {};
void A::foo();
======================

bug.cc:2: error: no 'void A::foo()' member function declared in class 'A'
bug.cc:2: error: no 'void A::foo()' member function declared in class 'A'
bug.cc:2: error: declaration of 'void A::foo()' outside of class is not
definition

Apparently we call check_classfn twice.

Steve, the duplicate message appeared with your patch for PR 28304.
But you probably only uncovered a latent problem. Would you mind
taking a look, anyway?


-- 
           Summary: [4.0/4.1/4.2 regression] duplicate "no member function
                    declared" message
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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

Reply via email to