repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
c++: anon union designated init [PR105925]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
desig26.C
blob
443fa3d089d002598ce4ffd5d91a852c65afb79c
1
// PR c++/105925
2
// { dg-do compile { target c++20 } }
3
4
struct V
5
{
6
int i;
7
double d;
8
};
9
10
struct X
11
{
12
union
13
{
14
int x;
15
V y;
16
};
17
};
18
19
X foo()
20
{
21
return {.y = {0, 0.0}};
22
}