Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1z
/
lambda-this5.C
blob: c6d44d7fd0bf556f43d637777029fd2fc487a9d9 [
file
] [
log
] [
blame
]
// PR c++/94205
// { dg-do compile { target c++17 } }
struct
S
{
int
a
=
[
this
]
{
this
->
a
=
5
;
return
6
;
}
();
};
constexpr
S s
=
{};
static_assert
(
s
.
a
==
6
);