Repositioning fstream

Vladimir Merzliakov wanderer@rsu.ru
Mon Jan 10 13:39:00 GMT 2005


>> >On Fri, Jan 07, 2005 at 04:27:35PM +0000, Jonathan Wakely wrote:
>> >
>> >>It does print "wibble" using GCC 2.95 and 3.3, but not 3.4 or 4.0.
>> >
>> >I was wrong, I only see a problem with 4.0, and only on FreeBSD.
>> >Works fine on my linux box. I'll try to figure out what I've broken.
>> >
>> Can be related to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19060
>
> It might be, but I see my problem at any optimisation level, even -O0.
>
> I do see the problem on i386-unknown-freebsd4.8 but not on
> x86_64-unknown-linux-gnu, which is consistent with that PR.
>
> Thanks for pointing it out, I'll keep investigating before I add
> anything to bugzilla.
I test your testcase at my FreeBSD 5.3 and GCC 4.0.0 20050107 (experimental) 
+ PR19060 patch from
http://gcc.gnu.org/ml/gcc-patches/2005-01/msg00393.html

It work fine:

make, ~/work/cpp/Test/repos > g++ test.cc -o test.out && ./test.out
wibble

Vladimir




More information about the Libstdc++ mailing list