https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113125
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-12 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:f3567889645ce1fed79c13d644313aa2a8ab9318 commit r12-10188-gf3567889645ce1fed79c13d644313aa2a8ab9318 Author: Iain Buclaw <ibuc...@gdcproject.org> Date: Mon Feb 12 16:59:12 2024 +0100 d: Fix internal compiler error: in make_import, at d/imports.cc:48 [PR113125] The cause of the ICE was that TYPE_DECLs were only being generated for structs with members, not opaque structs. PR d/113125 gcc/d/ChangeLog: * types.cc (TypeVisitor::visit (TypeStruct *)): Generate TYPE_DECL and apply UDAs to opaque struct declarations. gcc/testsuite/ChangeLog: * gdc.dg/imports/pr113125.d: New test. * gdc.dg/pr113125.d: New test. (cherry picked from commit b0efb1c35724e3332ee5993976efb98200c1a154)