Title
Evaluation order for subscripting
Status
open
Section
7.6.1.2 [expr.sub]
Submitter
Corentin Jabot

Created on 2022-04-21.00:00:00 last changed 1 month ago

Messages

Date: 2022-04-21.13:41:07

Suggested resolution:

Add a new paragraph 4 at the end of 7.6.1.2 [expr.sub]:

If the subscript operator invokes an operator function, the sequencing restrictions of the corresponding function call expression apply (12.4.5 [over.sub], 7.6.1.3 [expr.call]).
Date: 2022-04-21.00:00:00

The specification about the relative sequencing of multiple parameters of the subscripting operator is missing. Also, issue 2507 adds support for default arguments for user-defined subscripting operators, but the sequencing of these is unspecified, too.

History
Date User Action Args
2022-04-21 13:41:07adminsetmessages: + msg6806
2022-04-21 00:00:00admincreate