This crashes on DMD 2.070.0:
---
void main() {
import core.stdc.stdio;
printf("%p\n", typeid(null).initializer().ptr);
}
---
I haven't had a close look at the codegen, but it seems like DMD emits TypeInfo (the abstract base class) for typeof(null).
(In reply to Johan Engelen from comment #1)
> See LDC's runtime for a potential fix:
> https://github.com/ldc-developers/druntime/commit/
> 2cdd96be5070cfabf5cf2724a8dea46cd3922999
The proper fix would be to emit an actual TypeInfo instance for it, I think. It would then also correctly format the type as a string, etc.