Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/overload14.C

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