diff --git a/gen/functions.cpp b/gen/functions.cpp index 92bc713f..2761991e 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -767,6 +767,7 @@ void DtoDeclareFunction(FuncDeclaration* fdecl) } } else if (func->getFunctionType() != functype) { error(fdecl->loc, "Function type does not match previously declared function with the same mangled name: %s", fdecl->mangle()); + fatal(); } func->setCallingConv(gABI->callingConv(link));