Skip to content

[basic.pre] p3 Whether bit-fields are objects?  #213

@xmh0511

Description

@xmh0511

Full name of submitter (unless configured in github; will be published with the issue): Jim X

[basic.pre] p3 says

An entity is a value, object, reference, structured binding, function, enumerator, type, class member, bit-field, template, template specialization, namespace, or pack.

This implies object and bit-field are different entities.

However, [basic.lval] p1.1 says

A glvalue is an expression whose evaluation determines the identity of an object or function.

Lacks the bit-field cases. A glvalue can be a bit-field in the standard.

Suggested resolution:

We might need to strip bit-field from [basic.pre] p3, and admits that a (named)bit-field is an object. Then, in every special rule, we just need to say the bit-field object

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions