[Issue 23763] ICE on operations involving zero-initialized structs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Mar 16 01:20:57 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23763
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #14992 "merge stable" was merged into master:
- 5f15d561410277a0bff1a178f44486e055b3646e by Geod24:
Fix 23763: Correctly handle struct constants with 0 initializer
At the moment, in dsymbolsem.d:1026, there is the following comment:
```
/* If a struct is all zeros, as a special case
* set its initializer to the integer 0.
* In AssignExp::toElem(), we check for this and issue
* a memset() to initialize the struct.
* Must do same check in interpreter.
*/
```
Turns out, the 'Must do same check in interpreter.' part was missing.
https://github.com/dlang/dmd/pull/14992
--
More information about the Digitalmars-d-bugs
mailing list