Skip to content

[dcl.type.decltype] "operand" for specifiers #9342

Description

@BlowingWind314

[dcl.type.decltype]/1 says

... The operand of the decltype specifier is an unevaluated operand.

However decltype is not an operator (even though it looks like one).

Perhaps it's better to say

... The operand expression of the decltype specifier is an unevaluated operand.

Similarly [dcl.type.decltype]/2

If the operand expression of a decltype-specifier is a prvalue and is not a (possibly parenthesized) immediate invocation ([expr.const.imm]), ...

[dcl.type.auto.deduct]/4

... The type deduced for T is determined as described in [dcl.type.decltype], as though E had been the operand expression of the decltype.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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