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
In the fbc-1.08.0 release there were improvements for setting up the virtual table to include the deleting destructor.
This created a new bug where fbc is emitting the deleting destructor even though the class is declared only on the fbc side.
Resulting in the following (or similar):
ld: class.o: in function `base::~base()':
class.cpp:(.text+0x94): multiple definition of `base::~base()'; test.o:test.c:(.text+0x0): first defined here
ld: class.o: in function `derived::~derived()':
class.cpp:(.text+0x20c): multiple definition of `derived::~derived()'; test.o:test.c:(.text+0x52): first defined here
#undef base
extern "c++"
type base extends object
declare constructor
declare virtual destructor
declare virtual sub print()
declare virtual sub show
end type
type derived extends base
declare constructor
declare virtual destructor
declare sub print()
declare sub show
end type
end extern
dim z as base ptr=new derived
'z->print
z->show
In the fbc-1.08.0 release there were improvements for setting up the virtual table to include the deleting destructor.
This created a new bug where fbc is emitting the deleting destructor even though the class is declared only on the fbc side.
Resulting in the following (or similar):
Example:
class.cpp
test.bas
Forum post: https://www.freebasic.net/forum/viewtopic.php?p=283373#p283373
Example code: https://www.freebasic.net/forum/viewtopic.php?p=272431#p272431
The text was updated successfully, but these errors were encountered: