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.
Comment #1 by robert.schadek — 2024-12-13T19:18:20Z