Description
DXC does not treat enum class bitfields as a plain integer type, which can cause the enum class-typed bitfield (type) to be placed into its own 32-bit storage slot instead of being packed with the following bitfields. This may lead to a larger-than-expected struct layout and prevents full bitfield packing.
Steps to Reproduce
https://godbolt.org/z/Ga61357fn In this example, the generated struct is 12 bytes instead of 8.
Related issue: #5554
Description
DXC does not treat enum class bitfields as a plain integer type, which can cause the enum class-typed bitfield (type) to be placed into its own 32-bit storage slot instead of being packed with the following bitfields. This may lead to a larger-than-expected struct layout and prevents full bitfield packing.
Steps to Reproduce
https://godbolt.org/z/Ga61357fn In this example, the generated struct is 12 bytes instead of 8.
Related issue: #5554