Mercurial > projects > ldc
diff gen/functions.cpp @ 1162:0424e7dfadb1
Do not skip abstract function declarations if they have a function body. Fixes abstract_17_A,B.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 28 Mar 2009 20:25:59 +0100 |
parents | ba9d6292572a |
children | 83d3b25c2213 |
line wrap: on
line diff
--- a/gen/functions.cpp Sat Mar 28 20:01:37 2009 +0100 +++ b/gen/functions.cpp Sat Mar 28 20:25:59 2009 +0100 @@ -368,10 +368,10 @@ 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); } }