Title
Values of a bit-field
Status
cd4
Section
11.4.10 [class.bit]
Submitter
Hubert Tong

Created on 2014-02-13.00:00:00 last changed 86 months ago

Messages

Date: 2016-04-15.00:00:00

Proposed resolution (April, 2016):

Change 6.8.2 [basic.fundamental] paragraph 1 as follows:

...For narrow character types, all bits of the object representation participate in the value representation. [Note: A bit-field of narrow character type whose length is larger than the number of bits in the object representation of that type has padding bits; see 11.4.10 [class.bit]. —end note] For unsigned narrow character types, each possible bit pattern of the value representation represents a distinct number...
Date: 2014-06-15.00:00:00

Notes from the June, 2014 meeting:

CWG decided to address only the issue of oversized bit-fields of narrow character types at this time, splitting off the more general questions regarding bit-fields to issue 1943.

Date: 2016-06-15.00:00:00

[Adopted at the June, 2016 meeting.]

The resolution of issue 1816 left many aspects of bit-fields unspecified, including whether a signed bit field has a sign bit and the meaning of the bit-field width. Also, the requirement in 6.8.2 [basic.fundamental] paragraph 1 that

For narrow character types, all bits of the object representation participate in the value representation.

should not apply to oversize character-typed bit-fields.

History
Date User Action Args
2017-02-06 00:00:00adminsetmessages: + msg6103
2017-02-06 00:00:00adminsetstatus: drafting -> cd4
2014-07-07 00:00:00adminsetmessages: + msg5091
2014-07-07 00:00:00adminsetstatus: open -> drafting
2014-02-13 00:00:00admincreate