blob: da643cde7bedeb0de1822b0208d8185f5df708c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* PR middle-end/102359 ICE gimplification failed since
r12-3433-ga25e0b5e6ac8a77a. */
/* { dg-do compile } */
/* { dg-options "-ftrivial-auto-var-init=zero" } */
/* { dg-require-effective-target c++17 } */
struct A {
double a = 111;
auto foo() {
return [*this] { return a; };
}
};
int X = A{}.foo()();
|