public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/10074: Delimeters in an ifstream ignored when reading a std::string
@ 2003-03-14  5:26 trent
  0 siblings, 0 replies; 3+ messages in thread
From: trent @ 2003-03-14  5:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10074
>Category:       libstdc++
>Synopsis:       Delimeters in an ifstream ignored when reading a std::string
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 14 05:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     trent@itee.uq.edu.au
>Release:        3.2.1
>Organization:
>Environment:

>Description:
As of gcc version 3.2.1, reading a std::string from an std::ifstream results in the entire file contents being read, ignoring any delimiters in the file. This was not the behaviour of gcc 3.2 and prior.
>How-To-Repeat:
Compile the follow code fragment:
#include <iostream>
#include <fstream>

int main() {
   std::ifstream inf("input");
   std::string s;
   inf >> s;
   std::cerr << "read: '" << s << "'" << std::endl;
   inf.close();
}

and create inputfile with multiple lines.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libstdc++/10074: Delimeters in an ifstream ignored when reading a std::string
@ 2003-04-13  9:35 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-04-13  9:35 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, trent

Synopsis: Delimeters in an ifstream ignored when reading a std::string

State-Changed-From-To: feedback->closed
State-Changed-By: paolo
State-Changed-When: Sun Apr 13 09:35:31 2003
State-Changed-Why:
    No feedback.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10074


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libstdc++/10074: Delimeters in an ifstream ignored when reading a std::string
@ 2003-03-20 12:24 paolo
  0 siblings, 0 replies; 3+ messages in thread
From: paolo @ 2003-03-20 12:24 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, trent

Synopsis: Delimeters in an ifstream ignored when reading a std::string

State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Thu Mar 20 12:24:16 2003
State-Changed-Why:
    Cannot reproduce on i686-pc-linux-gnu, glibc2.3.2.
    Which version of glibc are you using? Anything older than
    2.2.5 is unfortunately not supported (see the FAQ).

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10074


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-13  9:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-14  5:26 libstdc++/10074: Delimeters in an ifstream ignored when reading a std::string trent
2003-03-20 12:24 paolo
2003-04-13  9:35 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).