You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
an id-expression that names one or more non-static class members and does not form a pointer to member ([expr.unary.op]) potentially references *this.
[Note 3: This occurs even if overload resolution selects a static member function for the id-expression. — end note]
The issue is that the normative part (plural «more non-static class members») and the Note are not compatible with [basic.def.odr], which says that
A function is named by an expression or conversion as follows:
— A function is named by an expression or conversion if it is the selected member of an overload set
P.S. Why the first bullet in [expr.prim.lambda.capture]/7 uses semicolon? I think it should be just split into two bullets.
The text was updated successfully, but these errors were encountered:
Presumably, the verb "names" has a different meaning in [expr.prim.lambda.capture] p7 and [basic.def.odr]. In [expr.prim.lambda.capture]/7, "name" should also cover data membe but [basic.def.odr] merely defines the "named by" for the variable and function
A variable is named by an expression if the expression is an id-expression
A non-static data member is not a variable. Thus, "name" or "named by" cannot apply to data member. Analogously, "name" defined for function cases in odr does not intend to apply to member function in [expr.prim.lambda.capture] p7. I think the verb "name" should be improved here since it has been given different meaning in the two clauses.
[expr.prim.lambda.capture]/7:
The issue is that the normative part (plural «more non-static class members») and the Note are not compatible with [basic.def.odr], which says that
P.S. Why the first bullet in [expr.prim.lambda.capture]/7 uses semicolon? I think it should be just split into two bullets.
The text was updated successfully, but these errors were encountered: