[Issue 22288] New: forward reference error for protected destructor with extern(C++) under Windows
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 7 21:07:00 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22288
Issue ID: 22288
Summary: forward reference error for protected destructor with
extern(C++) under Windows
Product: D
Version: D2
Hardware: x86_64
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 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.
--
More information about the Digitalmars-d-bugs
mailing list