From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31947 invoked by alias); 12 Jan 2002 19:59:24 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 31924 invoked by uid 61); 12 Jan 2002 19:59:23 -0000 Date: Sat, 12 Jan 2002 11:59:00 -0000 Message-ID: <20020112195923.31923.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jianhua.zhou@informix.com, nobody@gcc.gnu.org From: rodrigc@gcc.gnu.org Reply-To: rodrigc@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, jianhua.zhou@informix.com, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org X-Mailer: gnatsweb 2.9.3 Subject: Re: c++/5314: compilation error X-SW-Source: 2002-01/txt/msg00460.txt.bz2 List-Id: Synopsis: compilation error State-Changed-From-To: open->analyzed State-Changed-By: rodrigc State-Changed-When: Sat Jan 12 11:59:22 2002 State-Changed-Why: Even though this code example works with other C++ compilers and older gcc versions, it does not work with gcc 3.x, because the constructor you are invoking on filebuf is not part of the C++ standard. Look at: http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/porting-howto.html in the section, "3. stream::attach(int fd) is not in the standard any more" In order to do what you want, look at the following example from Josuttis: http://www.josuttis.com/libbook/io/outbuf2.hpp.html http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5314