Remove outermost loop parameter.
[official-gcc/graphite-test-results.git] / gcc / testsuite / g++.dg / template / inherit4.C
blob511c9e6050a1650c396bc32ffcdca0622f9d30b4
1 // PR c++/21008, DR 515
3 struct A {
4   int foo_;
5 };
6 template <typename T> struct B: public A { };
7 template <typename T> struct C: B<T> {
8   int foo() {
9     return A::foo_;  // #1
10   }
12 int f(C<int>* p) {
13   return p->foo();