mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp (#16914)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
This commit is contained in:
parent
219b4f07e4
commit
f420f988ab
2 changed files with 6 additions and 0 deletions
|
@ -23,4 +23,9 @@ void main()
|
|||
|
||||
static assert(is(typeof(a.length = 0) == size_t));
|
||||
static assert(is(typeof(a.length = f.length = 0) == size_t));
|
||||
|
||||
// https://issues.dlang.org/show_bug.cgi?id=24790
|
||||
struct S { int[] payload; }
|
||||
S s;
|
||||
s.payload.length += 3;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue