10610 ICE with CTFE after failed template

This is an error propagation bug. Class.staticmember should become
an ErrorExp, if Class was a failed template instantiation.

http://d.puremagic.com/issues/show_bug.cgi?id=10610