D-Programming-Language/dmd — pull request #1016 by donc (2012-06-19 06:55:57+00:00)
Title: Stop running CTFE on symbols, + fix bug 8237

CTFE should only be run on expressions, not symbols. Up to now, CTFE has been requested for template alias parameters. This happened to work, because optimize(WANTinterpret) just ignored them. This tightens it all up.
Also fixes:

8237 Error message with _error_ when using failed type inference in template parameter

because it's another case where a symbol (an erroneous one!) gets passed to CTFE.