https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90651
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:dcde4afec2a25a5fa69d1e5eec022768340fa1ab commit r9-9578-gdcde4afec2a25a5fa69d1e5eec022768340fa1ab Author: Iain Buclaw <ibuc...@gdcproject.org> Date: Thu Jun 10 19:48:49 2021 +0200 PR d/90651 (ICE in FuncDeclaration::semantic3, at d/dmd/func.c:1524) Fixes segmentation fault in FuncDeclaration::semantic3. gcc/d/ChangeLog: PR d/90651 * dmd/expressionsem.c (ExpressionSemanticVisitor::visit (TypeidExp)): Error when TypeInfo doesn't exist. * dmd/func.c (FuncDeclaration::semantic3): Likewise. * dmd/mtype.c (TypeClass::dotExp): Likewise. * typeinfo.cc (object_module): New variable. (make_frontend_typeinfo): Update signature. Set temporary on generated TypeInfo classes. (create_tinfo_types): Set object_module. Move generation of front-end typeinfo into ... (create_frontend_tinfo_types): ... New function. (layout_typeinfo): Call create_frontend_tinfo_types. (layout_classinfo): Likewise. (layout_cpp_typeinfo): Likewise. (create_typeinfo): Likewise. gcc/testsuite/ChangeLog: PR d/90651 * gdc.test/fail_compilation/extra-files/minimal/object.d: New file. * gdc.test/fail_compilation/fail19911a.d: New test. * gdc.test/fail_compilation/fail19911b.d: New test. * gdc.test/fail_compilation/fail19911c.d: New test. * gdc.test/fail_compilation/fail19922.d: New test. * gdc.test/fail_compilation/fail19923.d: New test. (cherry picked from commit 88ad43b1f91f7cd2ba9c342c6c1a6da82e6088bf)