This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 116a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2024-12-19
(From editorial issue 3871.)
Subclause 12.2.4.2.1 [over.best.ics.general] paragraph 4 specifies:
However, if the target isand the constructor ... is a candidate by
- the first parameter of a constructor or
- ...
user-defined conversion sequences are not considered.
- 12.2.2.4 [over.match.ctor], when the argument is the temporary in the second step of a class copy-initialization,
- 12.2.2.5 [over.match.copy], 12.2.2.6 [over.match.conv], or 12.2.2.7 [over.match.ref] (in all cases), or
- ...
A temporary is no longer created in 9.4.1 [dcl.init.general] bullet 16.6.3 "for the remaining copy-initialization cases". Instead, that section directly branches to 12.2.2.5 [over.match.copy], which is covered by the fourth bullet above.
Suggested resolution:
Change in 12.2.4.2.1 [over.best.ics.general] paragraph 4 as follows:
However, if the target isand the constructor ... is a candidate by
- ...
user-defined conversion sequences are not considered.
12.2.2.4 [over.match.ctor], when the argument is the temporary in the second step of a class copy-initialization,- 12.2.2.5 [over.match.copy], 12.2.2.6 [over.match.conv], or 12.2.2.7 [over.match.ref] (in all cases), or
- ...