stream.eof/AIX/pthread.h
Jonathan Wakely
jwakely.gcc@gmail.com
Fri Feb 22 00:08:00 GMT 2008
On 14/02/2008, Paul Moore <paul.moore@centrify.com> wrote:
> gcc 4.1.1 on AIX 5.2
>
>
> without pthread included this code works fine. the GetLine function ends
> up with eof set, the main function sees eof and stops
> with pthread included eof gets set in GetLine but when I pop back to
> main eof is not set. When GetLIne is called again eof is set on entry!
> ie the first cout<< in Getline shows eof is set, but the return to main
> has it not set etc.
Does passing (or not passing) -pthread to gcc make any difference
either with or without <pthread.h> ? And is the testcase you posted a
single file?
http://gcc.gnu.org/ml/libstdc++/2007-05/msg00012.html looks like the
previous report.
Jonathan
More information about the Libstdc++
mailing list