☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
error36.C
☽
☼
gcc/testsuite/g++.dg/other/error36.C
code
plain
raw
1
// PR c++/106983
2
// { dg-do compile { target c++20 } }
3
4
typedef unsigned long long A;
5
typedef union
6
{
7
struct B s; // { dg-error "incomplete" }
8
A a;
9
} U;
10
void f (A x, unsigned int b)
11
{
12
const U y = {.a = x};
13
}