OSDN Git Service

2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / lookup8.C
1 // PR c++/38030
2 // The call to f should be resolved at template definition time.
3 // { dg-do link }
4
5 struct B { };
6 struct D : public B { };
7 D d;
8 void f (B &) { }
9 template < class T >
10 void g ()
11 {
12   return f (d);
13 }
14 void f (D &);
15 int main ()
16 {
17   g<int> ();
18   return 0;
19 }