From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13800 invoked by alias); 6 May 2014 23:50:27 -0000 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 Received: (qmail 13709 invoked by uid 48); 6 May 2014 23:50:23 -0000 From: "ppluzhnikov at google dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/61023] set/map move assignment doesn't move (or copy) the comparator Date: Tue, 06 May 2014 23:50:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ppluzhnikov at google dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-05/txt/msg00428.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=61023 Paul Pluzhnikov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppluzhnikov at google dot com --- Comment #6 from Paul Pluzhnikov --- Created attachment 32750 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32750&action=edit test case for move assignment operator Just discovered this in Google code as well. Ref b/14590795 Move assign operator is broken the same way: for no_rvalue in 1 0; do for test in TEST_{,MULTI}{SET,MAP}; do echo -e "$no_rvalue $test \c"; g++ -std=c++11 set.cc -D$test -g -DNO_RVALUE=$no_rvalue && ./a.out &> /dev/null && echo OK done done 1 TEST_SET OK 1 TEST_MAP OK 1 TEST_MULTISET OK 1 TEST_MULTIMAP OK 0 TEST_SET Aborted (core dumped) 0 TEST_MAP Aborted (core dumped) 0 TEST_MULTISET Aborted (core dumped) 0 TEST_MULTIMAP Aborted (core dumped) Note: this is a 4.9/4.10 regression -- 4.8.3 works correctly.