[Issue 24242] forward inside templates with -dip1000 causes memory corruption

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 13 12:38:47 UTC 2023


https://issues.dlang.org/show_bug.cgi?id=24242

--- Comment #1 from Jan Jurzitza <d.bugs at webfreak.org> ---
discovered bug conditions:
- the variable holding data MUST be created in a separate function, creating it
inline, e.g. in the `main` here, doesn't trigger the memory corruption
- the struct MUST be templated for this bug to occur (otherwise it works as
expected)

--


More information about the Digitalmars-d-bugs mailing list