D-Programming-Language/dmd — pull request #750 by yebblies (2012-02-20 15:48:23+00:00)
Title: Issue 3630 - bad error location in "has no effect in expression" error

When resolving a symbol to an enum member, use the SymbolExp's loc instead of the enum value's loc.

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