1// { dg-do assemble  }
2// Bug: g++ fails to recognize that the template matches the target type.
3
4template <class T> void foo (T *, int);
5
6struct A;
7void bar ()
8{
9  void (*p)(A *, int) = &foo;
10}
11