summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash92.C
blob: c0219c4a3e89c6cdecdc0de1183d1a85c6dd32ed (plain)
1
2
3
4
5
6
7
// PR c++/42055

template<typename T> void foo(T, T); // { dg-error "candidates|template" }

template<typename T> void foo(T, int); // { dg-error "template" }

template void foo(int, int); // { dg-error "ambiguous template specialization" }