Bug in DMD?

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Fri Mar 3 01:24:42 UTC 2023


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.


More information about the Digitalmars-d-learn mailing list