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
/cp
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-79005.C
blob
79b89ca80cbdc821c5b98608ac9fbcdbce93dbff
1
// PR c++/79005
2
// { dg-do compile { target c++14 } }
3
4
int main()
5
{
6
auto glambda = [] (auto a)
7
{
8
const int c = a;
9
auto cglambda = [&] ( auto b )
10
{
11
double result;
12
result = b * a;
13
result = b * c;
14
return result;
15
};
16
cglambda ( 1 );
17
a = c;
18
};
19
20
glambda( 1 );
21
}