The following code does not compile under Windows with dmd v2.097.2:
extern(C++) class C
{
protected:
~this();
}
Compiling it under Windows results in the following error:
test.d(1): Error: class `test.C` base class is forward referenced by `C`
It compiles sucessfully under Linux. It also compiles under Windows without extern(C++).
Maybe protected destructors are not supported. In that case the error message could be improved.
Comment #1 by robert.schadek — 2024-12-13T19:18:23Z