Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
memtemp82.C
blob: 2bb6552f2a3ce80660db2f07c6c9d8a14001f571 [
file
] [
log
] [
blame
]
// { dg-do assemble }
struct
foo
{
template
<
typename
T
>
T bar
()
{
return
staticbar
<
T
>(
this
);
}
template
<
typename
T
>
static
T staticbar
(
foo
*
)
{
return
0
;
}
};
void
f
()
{
foo t
;
int
k
=
t
.
bar
<int>
();
}