Title
Incorrect description of when the lvalue-to-rvalue conversion applies
Status
c++11
Section
7.2.1 [basic.lval]
Submitter
Doug Gregor

Created on 2009-09-14.00:00:00 last changed 131 months ago

Messages

Date: 2010-11-15.00:00:00

[Voted into the WP at the November, 2010 meeting.]

Date: 2010-09-15.00:00:00

Proposed resolution (September, 2010):

Change 7.2.1 [basic.lval] paragraph 2 as follows:

Whenever a glvalue appears in a context where a prvalue is expected, the glvalue is converted to a prvalue; see 7.3.2 [conv.lval], 7.3.3 [conv.array], and 7.3.4 [conv.func]. [Note: An attempt to bind an rvalue reference to an lvalue is not such a context; see 9.4.4 [dcl.init.ref]. —end note]
Date: 2010-03-15.00:00:00

Notes from the March, 2010 meeting:

This resolution needs to be reconsidered in light of the new expression taxonomy.

Date: 2009-10-15.00:00:00

Proposed resolution (October, 2009):

Change 7.2.1 [basic.lval] paragraph 7 as follows:

Whenever an lvalue appears in a context where an rvalue is expected and an lvalue is not explicitly prohibited (as, for example, in 9.4.4 [dcl.init.ref]), the lvalue it is converted to an rvalue; see 7.3.2 [conv.lval], 7.3.3 [conv.array], and 7.3.4 [conv.func].
Date: 2009-09-14.00:00:00

7.2.1 [basic.lval] paragraph 7 says,

Whenever an lvalue appears in a context where an rvalue is expected, the lvalue is converted to an rvalue

That is not correct in the context of an attempt to bind an rvalue reference to an lvalue (9.4.4 [dcl.init.ref]).

History
Date User Action Args
2014-03-03 00:00:00adminsetstatus: fdis -> c++11
2011-04-10 00:00:00adminsetstatus: dr -> fdis
2010-11-29 00:00:00adminsetmessages: + msg3148
2010-11-29 00:00:00adminsetstatus: tentatively ready -> dr
2010-10-18 00:00:00adminsetmessages: + msg2970
2010-10-18 00:00:00adminsetstatus: drafting -> tentatively ready
2010-03-29 00:00:00adminsetmessages: + msg2576
2010-03-29 00:00:00adminsetstatus: ready -> drafting
2009-11-08 00:00:00adminsetmessages: + msg2340
2009-11-08 00:00:00adminsetstatus: open -> ready
2009-09-14 00:00:00admincreate