From 5658d9bb38b5fadd7484647a2076903476e1f1b0 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Mon, 22 Jun 2009 19:31:25 +0200 Subject: [PATCH] Emit file and line info for 'Array operation ... not recognized' error. Fixes #326. --- gen/toir.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index e9d5ba92..2b028eba 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -612,7 +612,7 @@ static void errorOnIllegalArrayOp(Expression* base, Expression* e1, Expression* (t2->ty == Tarray || t2->ty == Tsarray) ) { - error("Array operation %s not recognized", base->toChars()); + base->error("Array operation %s not recognized", base->toChars()); fatal(); } }