From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30329 invoked by alias); 25 Oct 2002 10:36:03 -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 30290 invoked by uid 71); 25 Oct 2002 10:36:02 -0000 Resent-Date: 25 Oct 2002 10:36:02 -0000 Resent-Message-ID: <20021025103602.30289.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, adamwilkshire@hotmail.com Received: (qmail 7516 invoked by uid 61); 25 Oct 2002 10:29:25 -0000 Message-Id: <20021025102925.7513.qmail@sources.redhat.com> Date: Fri, 25 Oct 2002 03:36:00 -0000 From: adamwilkshire@hotmail.com Reply-To: adamwilkshire@hotmail.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/8349: std::ios_base::out is not present in the fstream constructor taking a single argument. X-SW-Source: 2002-10/txt/msg00987.txt.bz2 List-Id: >Number: 8349 >Category: c++ >Synopsis: std::ios_base::out is not present in the fstream constructor taking a single argument. >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri Oct 25 03:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Adam Wilkshire >Release: gcc 3.2 >Organization: >Environment: Solaris Reading specs from /opt/global/pkg/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.7/3.2/specs Configured with: ../gcc-3.2/configure --prefix=/opt/global/pkg/ : (reconfigured) ../gcc-3.2/configure --prefix=/opt/global/pkg/gcc-3.2 Thread model: posix gcc version 3.2 >Description: expect one argument fstream constructor to create a file, if not present. int main(int argc,char** argv){ char buf[50]; sprintf(buf,"/tmp/%u",getpid()); std::fstream f1(buf); if (!f1) std::cout<<"COULD NOT GENERATE"<How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="temp9.cc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="temp9.cc" I2luY2x1ZGUgPGZzdHJlYW0+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGNzdGRpbz4K I2luY2x1ZGUgPHVuaXN0ZC5oPgoKaW50IG1haW4oaW50IGFyZ2MsY2hhcioqIGFyZ3YpewogIGNo YXIgYnVmWzUwXTsKICBzcHJpbnRmKGJ1ZiwiL3RtcC8ldSIsZ2V0cGlkKCkpOwogIHN0ZDo6ZnN0 cmVhbSBmMShidWYpOwogIGlmICghZjEpIHN0ZDo6Y291dDw8IkNPVUxEIE5PVCBHRU5FUkFURSI8 PHN0ZDo6ZW5kbDsKICBlbHNlIHN0ZDo6Y291dDw8IkdFTkVSQVRFRCAiPDxzdGQ6OmVuZGw7Cn0K