[Issue 22276] New: Compiler crash for extern(C++) under Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Sep 4 10:34:58 UTC 2021


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

          Issue ID: 22276
           Summary: Compiler crash for extern(C++) under Windows
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: tim.dlang at t-online.de

The following code results in a compiler crash with dmd 2.097.2 for Windows
(tested under wine), but compiles sucessfully with dmd for Linux:

struct S(alias F)
{
    extern(C++) static impl()
    {
    }
}

class C
{
    void f();
    void f(int);
}

S!(__traits(getOverloads, C, "f")[0]) x;


It looks like a null pointer access.

--


More information about the Digitalmars-d-bugs mailing list