This is the mail archive of the
libstdc++-prs@gcc.gnu.org
mailing list for the libstdc++ project.
Re: libstdc++/90
- To: nobody at sourceware dot cygnus dot com
- Subject: Re: libstdc++/90
- From: pme at sourceware dot cygnus dot com
- Date: 2 Feb 2001 22:57:00 -0000
- Cc: libstdc++-prs at sourceware dot cygnus dot com,
- Reply-To: pme at sourceware dot cygnus dot com
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++