summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/tc1/dr164.C
blob: 026ec096fb3aaf7e07be0c584d89320e2424c150 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do link }
// Origin: Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
// DR164: Overlap between Koenig and normal lookup 

void f(int);

template <class T> void g(T t) {
  f(t);
}

enum E { e };

void f(E) {}

int main() {
  g(e);
}