Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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
;