D-Programming-Language/dmd — pull request #450 by donc (2011-10-14 09:51:08+00:00)
Title: Properly fix bug 6661

6661 Templates instantiated only through is(typeof()) shouldn't cause errors

My earlier fix wasn't correct, it didn't restore the state of global.errors properly. This effectively created a regression, because it went from rejects-valid with error message, to rejects-valid without error message.