Mercurial > projects > ldc
changeset 523:c9a606d6e641
Abstract functions may have bodies.
Fixes:
run/a/abstract_17_A,B
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 17 Aug 2008 11:39:36 +0200 |
parents | cd4eeb6cc5f6 |
children | ca2dfe98036c |
files | gen/functions.cpp |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/functions.cpp Sat Aug 16 19:29:56 2008 +0200 +++ b/gen/functions.cpp Sun Aug 17 11:39:36 2008 +0200 @@ -378,8 +378,6 @@ Logger::println("DtoDeclareFunction(%s): %s", fdecl->toPrettyChars(), fdecl->loc.toChars()); LOG_SCOPE; - assert(!fdecl->isAbstract()); - // intrinsic sanity check if (fdecl->llvmInternal == LLVMintrinsic && fdecl->fbody) { error(fdecl->loc, "intrinsics cannot have function bodies");