From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32146 invoked by alias); 18 Mar 2002 09:36:05 -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 32101 invoked by uid 71); 18 Mar 2002 09:36:02 -0000 Resent-Date: 18 Mar 2002 09:36:02 -0000 Resent-Message-ID: <20020318093602.32100.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, dalle@iar.se Received:(qmail 28712 invoked from network); 18 Mar 2002 09:30:09 -0000 Received: from unknown (HELO fwall2.iar.se) (62.13.41.66) by sources.redhat.com with SMTP; 18 Mar 2002 09:30:09 -0000 Received: (from uucp@localhost) by fwall2.iar.se (8.7.1/8.7.1) id KAA18212 for ; Mon, 18 Mar 2002 10:30:07 +0100 (MET) Received: from pjakkur.iar.se(192.9.201.1) by fwall2.iar.se via smap (V2.0) id xma018198; Mon, 18 Mar 02 10:29:59 +0100 Received: from kveikur.iar.se (kveikur [192.9.201.20]) by pjakkur.iar.se (8.8.8/8.8.8) with ESMTP id KAA22320 for ; Mon, 18 Mar 2002 10:29:59 +0100 (MET) Received: (from dalle@localhost) by kveikur.iar.se (8.9.3+Sun/8.9.3) id KAA26806; Mon, 18 Mar 2002 10:29:53 +0100 (MET) Message-Id:<200203180929.KAA26806@kveikur.iar.se> Date: Mon, 18 Mar 2002 01:36:00 -0000 From: dalle@iar.se Reply-To: dalle@iar.se To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:3.113 Subject: libstdc++/5994: gcc 3.0.4 istrstream problem X-SW-Source: 2002-03/txt/msg00632.txt.bz2 List-Id: >Number: 5994 >Category: libstdc++ >Synopsis: operator>>() produces incorrect value >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Mon Mar 18 01:36:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.0.4 >Organization: >Environment: System: SunOS kveikur 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-5_10 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: ./configure --prefix=/opt/test --with-ld=/opt/test/bin/ld --with-gnu-ld --enable-languages=c,c++ >Description: #include #include #include void foo(std::string const & arg) { } int main() { std::string arg("9"); unsigned long level; std::istrstream is(arg.c_str()); is >> level; std::cout << level << '\n'; return 0; } >How-To-Repeat: Compile and execute the program above. When I run it the result is 262144 instead of 9. >Fix: >Release-Note: >Audit-Trail: >Unformatted: