Sign in
gnu
/
gcc
/
309e2d95e3b930c6f15c8a5346b913158404c76d
/
.
/
gcc
/
testsuite
/
g++.dg
/
other
/
error36.C
blob: 556287816fd4891563884dc3f802f7d43b3e6f9e [
file
] [
log
] [
blame
]
// PR c++/106983
// { dg-do compile { target c++20 } }
typedef
unsigned
long
long
A
;
typedef
union
{
struct
B s
;
// { dg-error "incomplete" }
A a
;
}
U
;
void
f
(
A x
,
unsigned
int
b
)
{
const
U y
=
{.
a
=
x
};
}