summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/overload10.C
blob: 088b9d291cbceedff921a74f3e7cf3ec317f9bfa (plain)
1
2
3
4
5
6
// PR c++40342

template <typename T1, typename T2> int f(T1 *, const T2 *); // { dg-error "" }
template <typename T1, typename T2> int f(const T1 *, T2 *); // { dg-error "" }

int (*p)(const int *, const int *) = f; // { dg-error "ambiguous" }