Sign in
gnu
/
gcc
/
418f81eefb6540582e4818225404d4a647ad67eb
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
friend17.C
blob: cb12ce8e79332cfa1abd379f61716329b5dbc70f [
file
] [
log
] [
blame
]
// Build don't link:
template
<
class
T
>
class
S2
{
public
:
static
void
f
();
};
class
S1
{
template
<
class
T
>
friend
class
S2
;
static
int
i
;
};
template
<
class
T
>
void
S2
<
T
>::
f
()
{
S1
::
i
=
3
;
}
void
g
()
{
S2
<double>
::
f
();
S2
<char>
::
f
();
}