view gcc/testsuite/g++.dg/cpp2a/paren-init22.C @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents
children
line wrap: on
line source

// PR c++/94155 - crash in gimplifier with paren init of aggregates.
// { dg-do compile { target c++20 } }

struct S { int i, j; };

struct A {
  S s;
  constexpr A(S e) : s(e) {}
};

void
f()
{
  A g[1]({{1, 1}});
}