https://issues.dlang.org/show_bug.cgi?id=23969 --- Comment #4 from Walter Bright <bugzilla at digitalmars.com> --- Microsoft VC will not compile: __declspec(dllexport) __declspec(thread) int x = 3; --