OSDN Git Service

/cp
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / lookup9.C
1 // PR c++/50848
2 // { dg-options "-fpermissive" }
3
4 template<class T> class A {T& foo;};
5 template<class T> class B: public A<T> {
6   void f(){
7     foo(1);                     // { dg-message "foo" }
8   }
9 };
10 template class B<int>;