Sign in
gnu
/
gcc
/
772d532e0ba1e4b22c2b7d576e14b34ee929c093
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
paren-init22.C
blob: ac7ab9c58084bb92267d5a82dd7d485a38ce7b37 [
file
] [
log
] [
blame
]
// 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
}});
}