Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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>
);
// ???
}