OSDN Git Service

PR c++/44148
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / tc1 / dr164.C
1 // { dg-do link }
2 // Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
3 // DR164: Overlap between Koenig and normal lookup 
4
5 void f(int);
6
7 template <class T> void g(T t) {
8   f(t);
9 }
10
11 enum E { e };
12
13 void f(E) {}
14
15 int main() {
16   g(e);
17 }