# HG changeset patch # User Christian Kamm # Date 1245691885 -7200 # Node ID 8a5570ddad25ef006e5d14cc65aacb6143e74d95 # Parent 09734fb929c0fcc6eee4f4996f427f3e9ddbeaf4 Emit file and line info for 'Array operation ... not recognized' error. Fixes #326. diff -r 09734fb929c0 -r 8a5570ddad25 gen/toir.cpp --- a/gen/toir.cpp Sun Jun 21 19:05:24 2009 +0200 +++ b/gen/toir.cpp Mon Jun 22 19:31:25 2009 +0200 @@ -612,7 +612,7 @@ (t2->ty == Tarray || t2->ty == Tsarray) ) { - error("Array operation %s not recognized", base->toChars()); + base->error("Array operation %s not recognized", base->toChars()); fatal(); } }