[Bug c++/57610] Reference initialized with temporary instead of sub-object of conversion result

hstong at ca dot ibm.com gcc-bugzilla@gcc.gnu.org
Fri Aug 23 18:03:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57610

Hubert Tong <hstong at ca dot ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hstong at ca dot ibm.com

--- Comment #8 from Hubert Tong <hstong at ca dot ibm.com> ---
Affects the candidate list for direct binding to a result of a conversion.

struct Z { };

struct A {
   operator Z &&() const = delete;  // GCC like this
   operator Z();
};

void zip() {
   Z &&x = A();
}



More information about the Gcc-bugs mailing list