D-Programming-Language/dmd — pull request #1046 by 9rnsr (2012-07-14 15:02:48+00:00)
Title: Issue 7385 - Bad error message missing line number on invalid array op that isn't special cased

http://d.puremagic.com/issues/show_bug.cgi?id=7385

Just calling error() function cannot stop the code generation while gagging errors. If errors exist, we should return ErrorExp.