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
Allow coarrays in select type. [PR46371, PR56496]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag19022.d
blob
0aa26f5379475a918adf34a289d0d282080868af
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/diag19022.d(16): Error: immutable field `b` initialized multiple times
5
fail_compilation/diag19022.d(15): Previous initialization is here.
6
---
7
*/
8
// https://issues.dlang.org/show_bug.cgi?id=19022
9
10
struct
Foo
11
{
12
immutable int
b
;
13
this
(
int
a
)
14
{
15
b
=
2
;
16
b
=
2
;
17
}
18
}