[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / template / crash39.C
blob840255cbea99b3ece352906af9168ec52503f1ca
1 // PR c++/22405
3 template <typename T> void foo(T &arg) { // { dg-message "declared" }
4   arg+=1;
7 template <typename T> void foo(T &arg) { // { dg-error "redefinition" }
8   arg+=2;
11 template void foo(float &arg);