Skip to content

[dcl.init.ref] References are bound to objects and functions, not expressions #2855

Open
@sdkrystian

Description

@sdkrystian

There are several occurrences in the wording saying that references are bound to expressions, which is incorrect:

[dcl.init.ref]/5.1 sentence 1

[...] the reference is bound to the initializer expression lvalue in the first case and to the lvalue result of the conversion in the second case

[dcl.init.ref]/5.3 sentence 3

[...] the reference is bound to the resulting glvalue

[dcl.init.ref]/5.4.2

The temporary materialization conversion is applied and the reference is bound to the result

Obviously, the reference should be bound to the object or function that the expression refers to, so this wording is technically incorrect.

Proposed fix

In each case where a reference is said to bind to an expression, it will be replaced with "the object or reference to which the initializer refers", or a variant thereof.

Metadata

Metadata

Assignees

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