Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
lambda-generic-const5.C
blob: 65e52ccd01f91516c929d147fbc563139634768f [
file
] [
log
] [
blame
]
// PR c++/78840
// { dg-do compile { target c++14 } }
int
global
;
void
Bar
(
int
);
template
<
int
I
>
void
Foo
()
{
const
int
cst
=
global
;
auto
lam0
=
[&]()
->
void
{
auto
lam1
=
[&]()
->
void
{
cst
;
};
Bar
(
cst
);
};
}
template
void
Foo
<
0
>
();