libstdc++/5501: wrong output
paolo@gcc.gnu.org
paolo@gcc.gnu.org
Sun Jan 27 10:15:00 GMT 2002
Synopsis: wrong output
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Sun Jan 27 08:34:16 2002
Responsible-Changed-Why:
Triaged.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Sun Jan 27 08:34:16 2002
State-Changed-Why:
Only the first write works because the preceding
get failed and thus the following put, in strict
conformance to the standard, does nothing. The preceding
get failed because you opened the file ate|out and therefore
you *cannot* read. Also, the get will fail if you will
not make careful of use of seekg before the get.
In general terms, libstdc++-v3 is *very* strictly conforming
to the ISO/ANSI standard and the old code must be updated.
Thanks for your report,
Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5501
More information about the Gcc-bugs
mailing list