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++/56973, DR 696 - capture constant variables only as needed.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-variadic3.C
blob
9b3455a4da3828c750d73a5fcd9a03877f0eaa13
1
// PR c++/63628
2
// { dg-do compile { target c++14 } }
3
4
auto const pack = [](auto&&... t)
5
{
6
return [&](auto&& f)->decltype(auto)
7
{
8
return f(static_cast<decltype(t)>(t)...);
9
};
10
};
11
12
int main(int argc, char** argv) {
13
pack(1)([](int){});
14
return 0;
15
}