1// PR c++/21008, DR 515
2
3struct A {
4  int foo_;
5};
6template <typename T> struct B: public A { };
7template <typename T> struct C: B<T> {
8  int foo() {
9    return A::foo_;  // #1
10  }
11};
12int f(C<int>* p) {
13  return p->foo();
14}
15