Sign in
gnu
/
gcc
/
93ac832f1846e4867aa6537f76f510fab8e3e87d
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
pr78523.C
blob: 31e0cc886fa2aa47b56101a20116461c9e1e291f [
file
] [
log
] [
blame
]
// PR c++/78523
// { dg-do compile { target c++14 } }
int
bar
();
void
foo
()
{
const
int
t
=
bar
();
auto
f
=
[=]
(
auto
x
)
{
return
t
;
};
f
(
0
);
}