This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12409] New: cannot reuse ofstream due to interaction between <string> and <fstream>
- From: "kouptsov at wsu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Sep 2003 18:41:52 -0000
- Subject: [Bug c++/12409] New: cannot reuse ofstream due to interaction between <string> and <fstream>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12409
Summary: cannot reuse ofstream due to interaction between
<string> and <fstream>
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kouptsov at wsu dot edu
CC: gcc-bugs at gcc dot gnu dot org
When file is created using ofstream::open and the filename is passed as
string::str(), the attempt to create another file by reusing the ofstream fails.
Please see attached files.