Title
Unclear referent of “expression” in assignment-expression
Status
cd5
Section
7.6.19 [expr.ass]
Submitter
Lisa Lippincott

Created on 2019-02-13.00:00:00 last changed 40 months ago

Messages

Date: 2019-10-15.00:00:00

Proposed resolution (October, 2019):

Change 7.6.19 [expr.ass] paragraph 3 as follows:

The expression If the right operand is an expression, it is implicitly converted (7.3 [conv]) to the cv-unqualified type of the left operand.
Date: 2019-05-15.00:00:00

Proposed resolution (May, 2019): [SUPERSEDED]

Change 7.6.19 [expr.ass] paragraph 3 as follows:

If the left operand is not of class type and the right operand is an assignment-expression, the expression assignment-expression is implicitly converted (7.3 [conv]) to the cv-unqualified type of the left operand.
Date: 2019-11-15.00:00:00

[Adopted as a DR at the November, 2019 meeting.]

According to 7.6.19 [expr.ass] paragraph 3,

If the left operand is not of class type, the expression is implicitly converted (7.3 [conv]) to the cv-unqualified type of the left operand.

Since the second operand of an assignment operator can now be an initializer-clause, the referent of “expression” is unclear.

See also issue 1542.

History
Date User Action Args
2020-12-15 00:00:00adminsetmessages: + msg6384
2020-12-15 00:00:00adminsetmessages: + msg6383
2019-02-13 00:00:00admincreate