Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
constexpr-lambda12.C
blob: 93b53273741036df59047f0b09fcb0ddf26cf46f [
file
] [
log
] [
blame
]
// { dg-do compile { target c++17 } }
void
f
(
int
i
)
{
[
i
]()
constexpr
{
int
j
;
// { dg-error "uninitialized" "" { target c++17_down } }
j
=
i
;
return
j
;
}();
}