[Issue 20737] New: TLS variables unusable with -betterC for Windows MSVC targets

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 14 21:16:42 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20737

          Issue ID: 20737
           Summary: TLS variables unusable with -betterC for Windows MSVC
                    targets
           Product: D
           Version: D2
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: kinke at 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;
}

--


More information about the Digitalmars-d-bugs mailing list