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
d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
b19685.d
blob
99addd8392496d88402172e463871499275a085f
1
/* TEST_OUTPUT:
2
---
3
fail_compilation/b19685.d(6): Error: overlapping default initialization for field `b` and `a`
4
---
5
*/
6
struct
S
7
{
8
union
9
{
10
struct
{
int
a
=
123
; }
11
struct
{
int
b
=
456
; }
12
}
13
}
14
15
void
main
()
16
{
17
S s
;
18
assert
(
s
.
b
==
123
);
19
}