☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-deduce2.C
☽
☼
gcc/testsuite/g++.dg/cpp0x/rv-deduce2.C
code
plain
raw
1
// PR c++/48313
2
// { dg-do compile { target c++11 } }
3
4
template<typename F>
5
void f(F&&) { }
6
7
void g() { }
8
9
template<typename T> void h() { }
10
11
int main()
12
{
13
f( g ); // OK
14
void (&p)() = h<int>;
15
f( p ); // OK
16
f( h<int> ); // ???
17
}
18