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