1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// { dg-do assemble } // PRMS Id: 4694 // Bug: g++ doesn't realize that A::i refers to a member of `this' in B(). class A { protected: int i; }; struct B : public A { B () { A::i = 0; } }; struct C : public B { C () { B::i = 0; } };