This is the mail archive of the libstdc++-prs@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++/90


The following reply was made to PR libstdc++/90; it has been noted by GNATS.

From: pme@sourceware.cygnus.com
To: guy@birchcrown.demon.co.uk, libstdc++-gnats@sourceware.cygnus.com,
  nobody@sourceware.cygnus.com
Cc:  
Subject: Re: libstdc++/90
Date: 2 Feb 2001 22:52:16 -0000

 Synopsis: std::istream &operator >> (std::istream &, int &) cannot parse "0x2a"
 
 State-Changed-From-To: open->closed
 State-Changed-By: pme
 State-Changed-When: Fri Feb  2 14:52:16 2001
 State-Changed-Why:
     Thank you for your bug report.
     
     Using current CVS,
     
         35% cat o90.cc
     
          #include <iostream>
          #include <sstream>
          int main()
          {
            std::stringstream foo("0x2a");
            int i;
            foo.setf(std::ios::fmtflags(0),
                     std::ios::basefield);
            foo >> i;
            assert(!foo.fail());
            std::cout << i << '\n';
          }
     
         36% g++ o90.cc
         37% ./a.out
         42
         38%
     
     so this appears to be fixed.
 
 http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=90&database=libstdc++

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]