]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Fix ICE: in output_constructor_regular_field, at varasm.cc:5500 [PR123798]
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 28 Jan 2026 21:09:37 +0000 (22:09 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 28 Jan 2026 21:35:31 +0000 (22:35 +0100)
commita1adc5aa30caae043cbd45dbbf9a738bebba34cc
tree94eb77d249422c0b45026fe79225d95b5fdaf87f
parentb20e68022a3f49010028dc01dab570c68071e3db
d: Fix ICE: in output_constructor_regular_field, at varasm.cc:5500 [PR123798]

PR d/123798

gcc/d/ChangeLog:

* types.cc (insert_aggregate_bitfield): Set DECL_NONADDRESSABLE_P and
DECL_PADDING_P on bit-field decls.
(finish_aggregate_type): Pass the aligned bit offset to layout_decl.

gcc/testsuite/ChangeLog:

* gdc.dg/pr123798.d: New test.
gcc/d/types.cc
gcc/testsuite/gdc.dg/pr123798.d [new file with mode: 0644]