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

2024-11-11


1996. Reference list-initialization ignores conversion functions

Section: 9.4.5  [dcl.init.list]     Status: drafting     Submitter: Richard Smith     Date: 2014-09-04

The specification for list-initialization of a reference does not consider the existence of conversion functions. Consequently, the following example is ill-formed:

  struct S { operator struct D &(); } s;
  D &d{s};