D-Programming-Language/dmd — pull request #1361 by AndrejMitrovic (2012-12-10 11:07:25+00:00)
Title: Fixes Issue 8894 - Regression with property lookup error message.

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

Previous Pull #1274 was abandoned since there were heavy merge conflicts. As per Walter's [comment](https://github.com/D-Programming-Language/dmd/pull/1274/files#issuecomment-10356781) I've tried to create a single function for the gagging workarounds, but I've only managed to do this for two cases (TOKdotti and TOKdot).

Two distinct cases remain which are hardcoded, I think it would be too hard to force it all into one function. Anyway this should all be temporary until we have a good system for lookups which doesn't depend on gagging and global state..