D-Programming-Language/dmd — pull request #1799 by donc (2013-03-26 08:44:56+00:00)
Title: Supress spurious 'is used as a type' template error message

If a template instantiation fails, a spurious 'XXX is used as a type' error is generated. Suppress it.
Also, when a constraint fails, change the instantiation error into a supplemental error message.

This pull request includes https://github.com/D-Programming-Language/dmd/pull/1789, which it depends on. That one needs to be pulled before this one.