Skip to content

[depr.c.macros] Missing description of __alignof_is_defined LWG4036 #6765

@frederick-vs-ja

Description

@frederick-vs-ja

__alignas_is_defined and __alignof_is_defined are introduced in C11 (WG14 N1507, WG14 N1558) and removed in C23 (WG14 N2934).

However, C++ (11~23) has never mentioned __alignof_is_defined even though it's specified that "contents of the C++ header <stdalign.h> are the same as the C standard library header <stdalign.h>" (the wording was slightly different before C++20). There doesn't seem any C++ paper or issue for this.

Is it intended that __alignof_is_defined is not a C++ feature or is there a missing specification? In the latter case, we may still need to change Annex C for C++26.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lwgIssue must be reviewed by LWG.not-editorialIssue is not deemed editorial; the editorial issue is kept open for tracking.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions