summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/lookup3.C
blob: 5a7a03722ca594569c46ddabb9353bb4b82bcca0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// { dg-do run  }
template<class T>
class A {
public:
  void f() { }
};

class B : public A<int> {
public:
  void f();
};

int main()
{
  B b;
  B& b1 = b;
  b1.A<int>::f();
}