Title
Error in description of value category of pointer-to-member expression
Status
nad
Section
7.6.4 [expr.mptr.oper]
Submitter
JP

Created on 2010-08-02.00:00:00 last changed 164 months ago

Messages

Date: 2010-09-15.00:00:00

Rationale (September, 2010):

There are no pointers to member of reference type; see 9.3.4.4 [dcl.mptr] paragraph 3.

Date: 2022-11-20.07:54:16
N3092 comment JP 2

According to 7.6.4 [expr.mptr.oper] paragraph 6,

The result of a .* expression whose second operand is a pointer to a data member is of the same value category (7.2.1 [basic.lval]) as its first operand.

This is incorrect if the member has a reference type, in which case the result is an lvalue.

History
Date User Action Args
2010-10-18 00:00:00adminsetmessages: + msg3045
2010-10-18 00:00:00adminsetstatus: drafting -> nad
2010-08-02 00:00:00admincreate