module object; class Object{} auto f() { Object o; return typeid(o); }
Based on issue 19911, and looking at other places that fall foul of blindly dereferencing Type::typeinfo.
@ibuclaw created dlang/dmd pull request #9941 "fix Issue 19922/19923 - ICE: using typeid() or .classinfo without TypeInfo_Class" fixing this issue: - fix Issue 19922 - ICE: Segmentation fault with typeid() https://github.com/dlang/dmd/pull/9941
dlang/dmd pull request #9941 "fix Issue 19922/19923 - ICE: using typeid() or .classinfo without TypeInfo_Class" was merged into stable: - e604d38bb20e4ad7637f94e3f82d78095cd43885 by Iain Buclaw: fix Issue 19922 - ICE: Segmentation fault with typeid() https://github.com/dlang/dmd/pull/9941
dlang/dmd pull request #10004 "[dmd-cxx] fix Issue 19922/19923 - 19922 - ICE: Segmentation fault with typeid()" was merged into dmd-cxx: - d363030db72f25698025492c39ed2d6048bb51b5 by Iain Buclaw: fix Issue 19922 - ICE: Segmentation fault with typeid() https://github.com/dlang/dmd/pull/10004