c++: Implement __is_nothrow_invocable built-in trait
[official-gcc.git] / gcc / testsuite / g++.dg / pr102359_1.C
blobda643cde7bedeb0de1822b0208d8185f5df708c7
1 /* PR middle-end/102359 ICE gimplification failed since
2    r12-3433-ga25e0b5e6ac8a77a.  */
3 /* { dg-do compile } */
4 /* { dg-options "-ftrivial-auto-var-init=zero" } */
5 /* { dg-require-effective-target c++17 } */
7 struct A {
8   double a = 111;
9   auto foo() {
10     return [*this] { return a; };
11   }
13 int X = A{}.foo()();