https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123798
Bug ID: 123798
Summary: d21: ICE: in output_constructor_regular_field, at
varasm.cc:5500
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gcc dot gnu.org
Target Milestone: ---
When using bit-fields in D classes (-fpreview=bitfields).
```
class bitfields
{
int a : 4;
long b : 8;
}
```
Backtrace
0x94aebf output_constructor_regular_field
../../gcc/varasm.cc:5500
0x94aebf output_constructor
../../gcc/varasm.cc:5812
0x1520c7e assemble_variable_contents
../../gcc/varasm.cc:2231
0x15261cc assemble_variable(tree_node*, int, int, int)
../../gcc/varasm.cc:2410
0x152a8c1 varpool_node::assemble_decl()
../../gcc/varpool.cc:596
0x152a8c1 varpool_node::assemble_decl()
../../gcc/varpool.cc:564
0xd1efa0 output_in_order
../../gcc/cgraphunit.cc:2191
0xd1efa0 symbol_table::compile()
../../gcc/cgraphunit.cc:2395
0xd1efa0 symbol_table::compile()
../../gcc/cgraphunit.cc:2309
0xd21f47 symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.cc:2583
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.