1// { dg-do assemble  }
2struct S
3{
4  void f(int);
5  void f(double);
6};
7
8void g(int);
9void g(double);
10
11template <int* IP>
12void foo();
13template <long l>
14void foo();
15
16void bar()
17{
18  foo<S::f>(); // { dg-error "" } no matching function
19  foo<g>();    // { dg-error "" } no matching function
20
21}
22