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
MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
test19473.d
blob
ba6024b000b8f9f454cc4cb5d320971f77620f7e
1
/* TEST_OUTPUT:
2
---
3
fail_compilation/test19473.d(14): Error: union `test19473.P` no size because of forward reference
4
---
5
*/
6
7
// https://issues.dlang.org/show_bug.cgi?id=19473
8
9
struct
A
{
10
P p
;
11
12
struct
UTpl
() {
13
union
{
14
P p
;
15
}
16
}
17
18
alias
U
=
UTpl
!();
19
}
20
21
alias
B
=
A
.
U
;
22
23
struct
C
{
24
union
D
{
25
B b
;
26
}
27
}
28
29
union
P
{
30
C
.
D p
;
31
}