]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Fix internal compiler error: in make_import, at d/imports.cc:48 [PR113125]
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 12 Feb 2024 15:59:12 +0000 (16:59 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 12 Feb 2024 16:06:41 +0000 (17:06 +0100)
commitb0efb1c35724e3332ee5993976efb98200c1a154
tree454a957a54c97bfb6317294ed7989fa61c7155bc
parent2dde675ff48600188d3e892d191a2345bad2e6ae
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.
gcc/d/types.cc
gcc/testsuite/gdc.dg/imports/pr113125.d [new file with mode: 0644]
gcc/testsuite/gdc.dg/pr113125.d [new file with mode: 0644]