This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: stream.eof/AIX/pthread.h


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]