Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-deduce2.C
blob: ecaaf388ca6cbe50c984f344761607c31cba4a0f [
file
] [
log
] [
blame
]
// PR c++/48313
// { dg-do compile { target c++11 } }
template
<
typename
F
>
void
f
(
F
&&)
{
}
void
g
()
{
}
template
<
typename
T
>
void
h
()
{
}
int
main
()
{
f
(
g
);
// OK
void
(&
p
)()
=
h
<int>
;
f
(
p
);
// OK
f
(
h
<int>
);
// ???
}