Like PR 19375, the following code gives the diagnostic twice:
class A {
private:
    int i;
};
class B : public A {
};
class C : public B {
public:
    void f() { A::i = 0; }
};

-- 
           Summary: [3.4/4.0/4.1 Regression] Access violation diagnostic
                    given twice
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to