public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6795: stringbuf failure
@ 2002-05-24 3:16 ssomers
0 siblings, 0 replies; only message in thread
From: ssomers @ 2002-05-24 3:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 6795
>Category: c++
>Synopsis: stringbuf failure
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: wrong-code
>Submitter-Id: net
>Arrival-Date: Fri May 24 03:16:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Stein Somers
>Release: 3.1
>Organization:
OPNET Technologies
>Environment:
System: SunOS zweistein 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-5_10
Architecture: sun4
host: sparc-sun-solaris2.6
build: sparc-sun-solaris2.6
target: sparc-sun-solaris2.6
configured with: ../gcc-3.1/configure --prefix=/opt/gcc-3.1
>Description:
istringstream doesn't seem to work here since upgrading from 3.0.4.
I didn't run the test suite (very tight on disk space).
SEGV during operator >>, after first underflow() in buffer
>How-To-Repeat:
#include <sstream>
int main (int argc, char** argv)
{
std::string mytext = "hello \nworld";
std::istringstream i(mytext);
// alternative: std::stringbuf buf(mytext, std::ios_base::in);
// alternative: std::istream i(&buf);
std::string word;
i >> word;
return word == "hello";
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-24 10:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-24 3:16 c++/6795: stringbuf failure ssomers
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).