--- Comment #5 from redi at gcc dot gnu dot org 2010-08-10 09:16 ---
You have not found a bug in GCC and this is not the place to learn C++.
Please find a reference on C++ iostreams or find an appropriate forum to ask
questions.
You can call is_open() to see if the stream was opened
htt
--- Comment #4 from china dot wenli dot wang at gmail dot com 2010-08-10
01:07 ---
(In reply to comment #3)
> (In reply to comment #2)
> > Thank you,yeah,the code is not a self-contained testcase.I copile it with
> > another codes which not show here.
>
> Yes, but we don't want to see
--- Comment #3 from redi at gcc dot gnu dot org 2010-08-08 02:17 ---
(In reply to comment #2)
> Thank you,yeah,the code is not a self-contained testcase.I copile it with
> another codes which not show here.
Yes, but we don't want to see a useless chunk of your program, it doesn't help
a
--- Comment #2 from china dot wenli dot wang at gmail dot com 2010-08-08
02:08 ---
(In reply to comment #1)
> 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 strin