blob: ddecc173c45b96a2e2ac07cd443391a9e86c58ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// PR c++/22405
template <typename T> void foo(T &arg) { // { dg-error "declared" }
arg+=1;
}
template <typename T> void foo(T &arg) { // { dg-error "redefinition" }
arg+=2;
}
template void foo(float &arg);
|