mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-12 13:55:57 +03:00
Do put zero in vtable initializer for function without body in abstract class.
This commit is contained in:
parent
ca91c52c5a
commit
497c7e87df
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ static void init_class_vtbl_initializer(ClassDeclaration* cd)
|
|||
FuncDeclaration* fd = dsym->isFuncDeclaration();
|
||||
assert(fd);
|
||||
|
||||
if (fd->isAbstract())
|
||||
if (fd->isAbstract() || (cd->isAbstract() && !fd->fbody))
|
||||
{
|
||||
sinits[k] = getNullPtr(getVoidPtrType());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue