Mercurial > projects > ldc
diff gen/functions.cpp @ 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 | a34078905d01 |
children | 642f6fa854e5 |
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");