aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/overload10.C
blob: 84078bd87250c5ceb7e06a91ee6f0a770c34e7c4 (plain)
1
2
3
4
5
6
// PR c++40342

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

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