aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/explicit22.C
blob: 2cb23381653479bd2469f3c000b87f49b06508f2 (plain)
1
2
3
4
5
6
7
8
9
10
// Build don't link:
// GROUPS passed templates
template <class T, class U>
T foo(T t, U* u); // ERROR - template candidate

template <class T>
T foo(T t, T* t); // ERROR - template candidate

template <>
int foo<int>(int, int*); // ERROR - ambiguous template specialization