#310 Given the following in C++

struct A {
const int :1; // Well-formed?
};

Without checking:

A. Yes
B. No

#Cplusplus
#Cpppolls

A
56.5%
B
43.5%
Poll ended at .

Answer is B

No this is not well-formed

This is CWG2229: http://wg21.link/cwg2229

[class.bit]p2: https://eel.is/c++draft/class.bit#2

Says "An unnamed bit-field shall not be declared with a cv-qualified type."

CWG Issue 2229