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
re PR c++/79180 (Nested lambda-capture causes segfault for parameter pack)
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr79180.C
blob
2e3992ccd08c64e9c0b18595eb47e90434ed1f09
1
// { dg-do run }
2
// { dg-options "-Wall -std=c++11" }
3
4
void
5
foo (int a)
6
{
7
if (a != 127)
8
__builtin_abort ();
9
}
10
11
template <typename... Args>
12
void
13
bar (Args &&... args)
14
{
15
[&]() { [&]() { foo (args...); } (); } ();
16
}
17
18
int
19
main ()
20
{
21
int x = 127;
22
bar (x);
23
}