This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/7172: fstream object cannot be read from a second file after first file is closed
- From: pme at gcc dot gnu dot org
- To: csarat at cs dot uic dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 1 Jul 2002 22:36:34 -0000
- Subject: Re: libstdc++/7172: fstream object cannot be read from a second file after first file is closed
- Reply-to: pme at gcc dot gnu dot org, csarat at cs dot uic dot edu, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: fstream object cannot be read from a second file after first file is closed
State-Changed-From-To: open->closed
State-Changed-By: pme
State-Changed-When: Mon Jul 1 15:36:33 2002
State-Changed-Why:
Not a bug. Your code must clear the stream before reuse:
http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#4_4_iostreamclear
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7172