This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/21286] [4.0/4.1 Regression] filebuf::xsgetn vs pipes
- From: "ralfixx at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2005 17:44:10 -0000
- Subject: [Bug libstdc++/21286] [4.0/4.1 Regression] filebuf::xsgetn vs pipes
- References: <20050429155408.21286.ralfixx@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ralfixx at gmx dot de 2005-05-01 17:44 -------
ncm-nospam@cantrip.org:
> A note for Ralf: It is incorrect to use cin.eof()
> to watch for the end of a stream.
> The correct flag to check is fail().
> eof() is really meant for seeing if that's why op>> failed.
Yup. Thanks for pointing that out. As for the 4.0.1 snapshot, is there a
specific place where to get it, or should I just use the CVS links on
http://www.gnu.org/software/gcc/cvs.html?
R'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21286