From d0fec06c7d0073720f7a46e041a08bd85aceea4f Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sun, 17 Aug 2008 11:39:36 +0200 Subject: [PATCH] Abstract functions may have bodies. Fixes: run/a/abstract_17_A,B --- gen/functions.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/gen/functions.cpp b/gen/functions.cpp index 5e7546b1..ab1893be 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -378,8 +378,6 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) 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");