You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
extern(C++):
classA
{
~this();
}
classB : A
{
}
classC : B
{
~this();
}
Output for different DMD versions (using https://run.dlang.org/):
Up to 2.070.2: Success and no output
2.071.2 to 2.078.3: Failure with output: onlineapp.d(6): Error: class onlineapp.B C++ base class A needs at least one virtual function
2.079.1 to 2.080.1: Failure with output: onlineapp.d(6): Error: class onlineapp.B C++ base class A needs at least one virtual function
Since 2.081.2: Failure with output:
onlineapp.d(9): Error: class onlineapp.C use of onlineapp.A.~this() is hidden by C; use alias ~this = A.~this; to introduce base class overload set
onlineapp.d(9): Error: class onlineapp.C use of onlineapp.A.~this() is hidden by C; use alias ~this = A.~this; to introduce base class overload set
The problem does not exist without extern(C++).
The suggestion to use alias ~this = A.~this; is not valid syntax.
Activity
Fix dlang#22709 - Use of extern(C++) destructor is hidden
Fix dlang#22709 - Use of extern(C++) destructor is hidden
Fix #22709 - Use of extern(C++) destructor is hidden