Skip to content

CWG3143 [diff.dcl] Annex C statement about type of enumerators incorrect after rebase to C23 #828

@hubert-reinterpretcast

Description

@hubert-reinterpretcast

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

Reference (section label): [diff.dcl]

Link to reflector thread (if any): N/A

Issue description:

https://wg21.link/diff.dcl#12 states that the type of enumerators in C is int. This is not true in C23 since the adoption of https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3029.htm and https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3030.htm.

Suggested resolution:

Replace "is int" with "can be int".

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