CWG Issue 1926 (original) (raw)
This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 117a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-04-13
1926. Potential results of subscript operator
Section: 6.3 [basic.def.odr]Status: CD4Submitter: Marcel WidDate: 2014-05-13
[Moved to DR at the May, 2015 meeting.]
The definition of the potential results of an expression in 6.3 [basic.def.odr] paragraph 2 do not, but should, include the subscript operator.
Proposed resolution (November, 2014):
Change 6.3 [basic.def.odr] paragraph 2 as follows:
...The set of potential results of an expression e is defined as follows:
- If e is an id-expression(_N4567_.5.1.1 [expr.prim.general]), the set contains only e.
- If e is a subscripting operation (7.6.1.2 [expr.sub]) with an array operand, the set contains that operand.
- If e is a class member access...