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
c++, coroutines: Simplify separation of the user function body and ramp.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-init15a.C
blob
166d650d4f7998e7e8d3ea2830d29b053e406538
1
// PR c++/71837
2
// { dg-do compile { target c++14 } }
3
4
template < typename ... Ts > void f (Ts ... args)
5
{
6
[ts (args ...)] { return ts; } (); // { dg-error "" }
7
}
8
9
int main ()
10
{
11
f (); // { dg-message "required" }
12
f (1,2); // { dg-message "required" }
13
return 0;
14
}