https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113125
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>: https://gcc.gnu.org/g:341fa4d2340b21c322082fb5a7cad18a48b9eda7 commit r13-8398-g341fa4d2340b21c322082fb5a7cad18a48b9eda7 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)