repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR c++/86728 - C variadic generic lambda.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
rv-deduce2.C
blob
ecaaf388ca6cbe50c984f344761607c31cba4a0f
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