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

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

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

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