D-Programming-Language/dmd — pull request #1905 by donc (2013-04-17 08:52:38+00:00)
Title: 7147 typeid() should be supported in CTFE

Recognize the lowering which happens in the front-end ( typeid(C) becomes ```cast(TypeInfo)**C``` ), and create a reference to the static 'typeinfo' variable, just as happens in mtype.c when the type is statically known.