From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4722 invoked by alias); 26 Oct 2007 17:32:21 -0000 Received: (qmail 4679 invoked by uid 48); 26 Oct 2007 17:32:10 -0000 Date: Fri, 26 Oct 2007 17:32:00 -0000 Message-ID: <20071026173210.4678.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/9925] ostrstream (buf, size) << "..." does not work properly In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jason at gcc dot gnu dot org" 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: 2007-10/txt/msg02316.txt.bz2 ------- Comment #26 from jason at gcc dot gnu dot org 2007-10-26 17:32 ------- Changed component to libstdc++. This problem should be fixed by adding rvalue reference support to iostreams; the current working paper calls for template basic_ostream& operator<<(basic_ostream&& out, const unsigned char* s); which should make the original testcase work as expected. Though I find it surprising that this signature returns an lvalue reference rather than rvalue. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bkoz at redhat dot com Component|c++ |libstdc++ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9925