mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Do not skip abstract function declarations if they have a function body. Fixes abstract_17_A,B.
This commit is contained in:
parent
c5a09c9deb
commit
42da8b98b1
1 changed files with 3 additions and 3 deletions
|
@ -368,10 +368,10 @@ void DtoResolveFunction(FuncDeclaration* fdecl)
|
|||
Logger::println("DtoResolveFunction(%s): %s", fdecl->toPrettyChars(), fdecl->loc.toChars());
|
||||
LOG_SCOPE;
|
||||
|
||||
// queue declaration
|
||||
if (!fdecl->isAbstract())
|
||||
// queue declaration unless the function is abstract without body
|
||||
if (!fdecl->isAbstract() || fdecl->fbody)
|
||||
{
|
||||
Logger::println("Ignoring declaration of abstract function %s", fdecl->toPrettyChars());
|
||||
Logger::println("Ignoring declaration of abstract bodyless function %s", fdecl->toPrettyChars());
|
||||
DtoDeclareFunction(fdecl);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue