https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66893

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-07-16
            Summary|disallowed initialization   |disallowed initialization
                   |of reference with           |of reference with explicit
                   |user-defined conversion     |user-defined conversion
                   |function                    |function
     Ever confirmed|0                           |1

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is a bug, but because of the rest of the paragraph not the part quoted
above:

  For direct-initialization, those explicit conversion functions that are not
  hidden within S and yield type “lvalue reference to cv2 T2” or “cv2 T2” or
  “rvalue reference to cv2 T2”, respectively, where T2 is the same type as T
  or can be converted to type T with a qualification conversion (4.4), are also
  candidate functions."

Reply via email to