]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Fix ICE: in expand_asm_stmt, at cfgexpand.cc:3445 [PR121477]
authorIain Buclaw <ibuclaw@gdcproject.org>
Wed, 28 Jan 2026 17:34:21 +0000 (18:34 +0100)
committerIain Buclaw <ibuclaw@gdcproject.org>
Wed, 28 Jan 2026 17:41:27 +0000 (18:41 +0100)
commitbaaa412ae73c12e2e5ea2552534ec42525f6d21e
tree8eb94eda2a47ae920c79c612f6b5883fb82d1c44
parentda65c9d0ae20eda452e52ab9b2e3e110911a2d21
d: Fix ICE: in expand_asm_stmt, at cfgexpand.cc:3445 [PR121477]

The d_mark_addressable routine that sets TREE_ADDRESSABLE in the D
front-end did not handle DECL_BIT_FIELD.

PR d/121477

gcc/d/ChangeLog:

* d-codegen.cc (d_mark_addressable): Give an error if taking the
address of a DECL_BIT_FIELD.

gcc/testsuite/ChangeLog:

* gdc.dg/pr121477.d: New test.
gcc/d/d-codegen.cc
gcc/testsuite/gdc.dg/pr121477.d [new file with mode: 0644]