www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20737] New: TLS variables unusable with -betterC for Windows


          Issue ID: 20737
           Summary: TLS variables unusable with -betterC for Windows MSVC
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: kinke gmx.net

This, compiled & linked with -betterC, segfaults with DMD 2.091 on Windows,
with -m64 and -m32mscoff (-m32 works; working fine with LDC too):

int tlsVar;

extern(C) int main()
    tlsVar = 123;
    return 0;

Apr 14 2020