[Issue 24242] forward inside templates with -dip1000 causes memory corruption
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 13 18:20:59 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24242
kinke <kinke at gmx.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kinke at gmx.net
--- Comment #3 from kinke <kinke at gmx.net> ---
The problem appears to be that the compiler wrongly infers the `ulong[] value`
ctor param as being `scope` (if the struct/ctor is templated). That then
enables a (frontend) optimization, passing the array literal on the stack.
--
More information about the Digitalmars-d-bugs
mailing list