This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/22130] fstream fails to create a file in ios::in| ios::out mode.
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2005 22:45:22 -0000
- Subject: [Bug libstdc++/22130] fstream fails to create a file in ios::in| ios::out mode.
- References: <20050620221810.22130.rohit_goel@ml.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schwab at suse dot de 2005-06-20 22:45 -------
You need to add ios::trunc if you want to create the file, see
[lib.filebuf.members] 27.8.1.3#2.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22130