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

2025-10-11


3073. Dependence of R on T2 is unclear

Section: 12.2.2.7  [over.match.ref]     Status: open     Submitter: Brian Bi     Date: 2025-09-15

(From submission #762.)

It is unclear whether the set R defined in 12.2.2.7 [over.match.ref] bullet 1.1 is a function of T2 or is the union of the sets computed from all such T2.

Suggested resolution:

Remove the top-level bulleting in 12.2.2.7 [over.match.ref] bullet 1.1 and change as follows:

... Let R be a the set of all types including for any T2. The permissible types for non-explicit conversion functions are the members of R having the form "cv T2" or "reference to cv2 T2" where “cv1 T” is reference-compatible (9.5.4 [dcl.init.ref]) with “cv2 T2”. For direct-initialization, the permissible types for explicit conversion functions are the members of R having the form "cv2 T2" or "reference to cv2 T2" where T2 can be converted to type T with a (possibly trivial) qualification conversion (7.3.6 [conv.qual]); otherwise there are none.