In 64bit windows builds, reading/writing thread local variables hangs the program.
Forum post about this: https://forum.dlang.org/post/[email protected]
Steps to reproduce:
- Compiler: dmd 2.096.1
- Platform: Windows 10 64-bit
```
// test.d
int a; // thread local
extern(C) void main() {
printf("before... ");
a = 42; // The program hangs here.
printf("after");
}
```
```
$ dmd -betterC test.d; ./test.exe
before... after
$ dmd -betterC -m64 test.d; ./test.exe
before... [program hangs for 3 seconds and exits without printing anything else]
```
Comment #1 by bugzilla — 2023-01-15T07:46:23Z
*** This issue has been marked as a duplicate of issue 20737 ***