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



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



           What    |Removed                     |Added

----------------------------------------------------------------------------

           Keywords|                            |accepts-invalid

             Status|UNCONFIRMED                 |NEW

   Last reconfirmed|                            |2013-02-14

            Summary|implicit copy constructor   |[DR 1051] implicit copy

                   |is not deleted when it is   |constructor is not deleted

                   |ill formed                  |for type with rvalue

                   |                            |reference member

     Ever Confirmed|0                           |1



--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-14 
12:45:16 UTC ---

And a minimal form:



struct T { int&& i; };

T t { 1 };

T tt = t;



This should be rejected by [class.copy]/11, this was DR 1051



http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1051

Reply via email to