Bug in DMD?

Vladimir Panteleev thecybershadow.lists at gmail.com
Fri Mar 3 01:11:06 UTC 2023


On Friday, 3 March 2023 at 01:07:07 UTC, ryuukk_ wrote:
> I couldn't figure out dustmite, so i started from 0 and managed 
> to hit something:
>
> https://github.com/ryuukk/dmd_bug
>
> ``Assertion failed: array index out of bounds, file game\app.d, 
> line 5``
>
> Wich indicates probably TLS problem?

Yeah... `rt.a.stuffs` is a TLS variable. The D runtime manages 
TLS. `extern(C) main` bypasses D runtime initialization.



More information about the Digitalmars-d-learn mailing list