Skip to content

[expr.type] p1 should possibly be a note #6455

@eisenwave

Description

@eisenwave

If an expression initially has the type “reference to T” ([dcl.ref], [dcl.init.ref]), the type is adjusted to T prior to any further analysis.
The expression designates the object or function denoted by the reference, and the expression is an lvalue or an xvalue, depending on the expression.

- [expr.type] p1

To me it seems like this paragraph could be a note, because it doesn't provide any normative information. This paragraph does not state what kind of references are turned into lvlaues or xvalues respectively, it merely hints to the reader that such a conversion mechanism exists.

All the specifics can be found in other paragraphs, such as:

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