Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash39.C
blob: 840255cbea99b3ece352906af9168ec52503f1ca [
file
] [
log
] [
blame
]
// 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
);