'Can or should I make bools bit fields?

Is this legal or recommended? I read that you should only use integer types as bitfields, but does this apply to boolean types? Is this OK, or is this bad practice or undefined behavior somehow?

struct MyStruct {
    // ...
    bool SomeBooleanProperty:1;
    // ...
};


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source