From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12502 invoked by alias); 23 Dec 2014 14:15:36 -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 12439 invoked by uid 48); 23 Dec 2014 14:15:31 -0000 From: "harald at gigawatt dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/64372] [DR1560] Gratuitous lvalue-to-rvalue conversion in conditional-expression with throw-expression operand Date: Tue, 23 Dec 2014 14:15: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-Version: 4.9.2 X-Bugzilla-Keywords: diagnostic, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: harald at gigawatt dot nl X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02640.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D64372 --- Comment #7 from Harald van Dijk --- (In reply to Manuel L=C3=B3pez-Ib=C3=A1=C3=B1ez from comment #6) Even that is probably too much right now. :) I do hope to be able to make s= ome bigger contributions in the future (in code too), and I really appreciate y= our comment. >>From gcc-bugs-return-471634-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Dec 23 14:22:23 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19468 invoked by alias); 23 Dec 2014 14:22:22 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 19452 invoked by uid 48); 23 Dec 2014 14:22:18 -0000 From: "alan at birtles dot org.uk" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/64385] New: odd behaviour of std::is_move_constructible< std::ostringstream > Date: Tue, 23 Dec 2014 14:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alan at birtles dot org.uk X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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-12/txt/msg02641.txt.bz2 Content-length: 903 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64385 Bug ID: 64385 Summary: odd behaviour of std::is_move_constructible< std::ostringstream > Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: alan at birtles dot org.uk Created attachment 34320 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34320&action=edit file to reproduce the bug When compiling the attached code without "A" defined the code outputs 0, 0 which is expected as std::ostringstream doesn't have a move constructor in gcc 4.9. However when "A" is defined the code outputs 1, 1 which is incorrect. Compiled with "g++ test.cpp -std=c++11 -D A" on Ubuntu 14.10. g++ --version: g++ (Ubuntu 4.9.1-16ubuntu6) 4.9.1