From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32559 invoked by alias); 14 Feb 2013 12:45:32 -0000 Received: (qmail 32450 invoked by uid 48); 14 Feb 2013 12:45:17 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/56319] [DR 1051] implicit copy constructor is not deleted for type with rvalue reference member Date: Thu, 14 Feb 2013 12:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Keywords Status Last reconfirmed Summary Ever Confirmed Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-02/txt/msg01423.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56319 Jonathan Wakely 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 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