public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/9657: [3.2/3.3/3.4 regression] Incorrect parsing when using istringstream::str
@ 2003-02-17 23:46 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-02-17 23:46 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, pergj
Old Synopsis: Incorrect parsing when using istringstream::str
New Synopsis: [3.2/3.3/3.4 regression] Incorrect parsing when using istringstream::str
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Mon Feb 17 23:46:48 2003
State-Changed-Why:
Confirmed. Seems like something for the libstdc++ department :-)
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9657
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: libstdc++/9657: [3.2/3.3/3.4 regression] Incorrect parsing when using istringstream::str
@ 2003-02-18 10:01 paolo
0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2003-02-18 10:01 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, paolo, pergj
Synopsis: [3.2/3.3/3.4 regression] Incorrect parsing when using istringstream::str
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Tue Feb 18 10:01:34 2003
Responsible-Changed-Why:
Analyzed.
State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Tue Feb 18 10:01:34 2003
State-Changed-Why:
Not a bug, but behaviour mandated by the standard, now
implemented correctly. After the first extraction iss.good()
is false and iss.eof() is true since the end of the string
is reached during the extraction. Therefore istream::sentry
blocks the second extraction. User code can be fixed either
initializing the first time with "1 " (space after 1), or
clearing the stream state before the second extraction
(iss.clear()). Thanks for your report, Paolo.
P.S. In fact we _test_ in the testsuite for this behaviour,
in istringstream_members.cc
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9657
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-18 10:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 23:46 libstdc++/9657: [3.2/3.3/3.4 regression] Incorrect parsing when using istringstream::str bangerth
2003-02-18 10:01 paolo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).