https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113125

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:b0efb1c35724e3332ee5993976efb98200c1a154

commit r14-8935-gb0efb1c35724e3332ee5993976efb98200c1a154
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.

Reply via email to