This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 115f. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2024-12-06


1328. Conflict in reference binding vs overload resolution

Section: 9.4.4  [dcl.init.ref]     Status: CD3     Submitter: Johannes Schaub     Date: 2011-05-31

[Moved to DR at the April, 2013 meeting.]

According to 12.2.2.7 [over.match.ref] paragraph 1, the determination of the candidate functions is based on whether 9.4.4 [dcl.init.ref] requires an lvalue result or an rvalue result. It is not sufficiently clear exactly what this means, particularly with respect to function lvalues and rvalues.

Proposed resolution (August, 2011):

  1. Change 12.2.2.7 [over.match.ref] paragraph 1 as follows:

  2. Change 12.2.4 [over.match.best] paragraph 1 as follows: