Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend36.C
blob: f6f261ba07f085b9a7fd4b9bb001cf950044c3b0 [
file
] [
log
] [
blame
]
// { dg-do assemble }
template
<
class
T
>
void
f
(
T
)
{}
// { dg-message "previously" }
template
<
class
U
>
struct
S
{
template
<
class
T
>
friend
void
f
(
T
)
{}
// { dg-error "redefinition" }
};
S
<int>
si
;