[cfe-dev] Using a enum type for a bitfield

Csaba Raduly via cfe-dev cfe-dev at lists.llvm.org
Wed Aug 26 00:29:47 PDT 2015


Hi.

On Mon, Aug 24, 2015 at 10:29 PM, Hordijk, Michael via cfe-dev  wrote:
> The short question:
>
> Does clang support using an enum as a type for a bit-field?
>
> C11 (6.7.2.1 P 5):
>
> A bit-field shall have a type that is a qualified or unqualified version
> of _Bool, signed int, unsigned int, or some other implementation-defined
> type.
...
> So I'm curious as to whether clang supports it.  I did find this on
> bugzilla:
>
> https://llvm.org/bugs/show_bug.cgi?id=3D11272

LLVM Bugzilla says:

'3D11272' is not a valid bug number.


Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the cfe-dev mailing list