Skip to content

[intro.object] The term "potentially-overlapping subobject" doesn't seem to exclude reference members #6158

Open
@frederick-vs-ja

Description

@frederick-vs-ja

no_unique_address can be applied to non-static reference data members, which is needed for ranges::minmax.

However, the current wording seemingly implies that a non-static data member of a reference type declared with [[no_unique_address]] would also be a "potentially-overlapping subobject" even if it can't be a subobject.

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