aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/paren-init22.C
blob: ac7ab9c58084bb92267d5a82dd7d485a38ce7b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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}});
}