Bug 22288 – forward reference error for protected destructor with extern(C++) under Windows

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2021-09-07T21:07:00Z
Last change time
2024-12-13T19:18:23Z
Keywords
C++
Assigned to
No Owner
Creator
Tim
Moved to GitHub: dmd#18056 →

Comments

Comment #0 by tim.dlang — 2021-09-07T21:07:00Z
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
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18056 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB