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