From ecd59cbb7734b57a39f0e75ce814f821e4f7470d Mon Sep 17 00:00:00 2001 From: kai Date: Mon, 23 Jun 2014 18:02:14 +0200 Subject: [PATCH] Fix compilation error --- gen/functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/functions.cpp b/gen/functions.cpp index 009e5a8e2e..4ed57cf9d1 100644 --- a/gen/functions.cpp +++ b/gen/functions.cpp @@ -949,7 +949,7 @@ void DtoDefineFunction(FuncDeclaration* fd) * but the errors were gagged. * Try to reproduce those errors, and then fail. */ - error("errors compiling function %s", fd->toPrettyChars()); + error(fd->loc, "errors compiling function %s", fd->toPrettyChars()); fd->ir.defined = true; return; }