This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45226] the difference of fstream's open() in different GCC version
- From: "redi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Aug 2010 18:15:10 -0000
- Subject: [Bug c++/45226] the difference of fstream's open() in different GCC version
- References: <bug-45226-19535@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from redi at gcc dot gnu dot org 2010-08-07 18:15 -------
1) GCC 3.4.6 is ancient and no longer supported.
2) Your code is not a self-contained testcase, so noone can compile it.
3) std::ofstream::open does not take a string as the second parameter, it takes
a bitmask of type std::ios:openmode. You need to update your code to ISO C++.
--
redi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45226