pogo59 wrote:

> Does this issue not apply to other platforms?

There is a deliberate layout/ABI choice that MSVC made ages ago and will never 
change. It will only pack bitfields into the same word if the neighboring 
bitfield declarations have the same base type. This is relatively well known.

That said, being able to attach an enum (or whatever) to the bitfield does seem 
handy, for any target.

https://github.com/llvm/llvm-project/pull/69104
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to