Bug in DMD?

ryuukk_ ryuukk.dev at gmail.com
Fri Mar 3 01:33:11 UTC 2023


On Friday, 3 March 2023 at 01:24:42 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> This works:
>
> ```d
> extern(C) void main()
> {
>     Stuff[5] temp = [
> 	Stuff(),
> 	Stuff(),
> 	Stuff(),
> 	Stuff(),
> 	Stuff(),
> ];
>     stuffs = temp[];
> 	stuffs[0].do_something();
> }
> ```
>
> ```d
> Stuff[] stuffs;
> ```
>
> The problem here is dmd isn't initializing TLS with a value, 
> but TLS itself is working.

So it is a DMD bug?


More information about the Digitalmars-d-learn mailing list