This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
in_avail() bug not fixed in 3.0.3
- From: "David Rasmussen" <pinkfloydhomer at yahoo dot com>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 14 Dec 2001 16:55:58 +0100
- Subject: in_avail() bug not fixed in 3.0.3
The in_avail() bug described in GNATS PR# 3647, has not been fixed. The PR
was closed, and marked "fixed", but I have just downloaded the pre-release
gcc-3.0.3-20011213, mentioned by Mark Mitchell. I have built it on cygwin,
successfully, and tried to compile the code from the PR:
#include <iostream>
using namespace std;
int main()
{
cout << cin.rdbuf()->in_avail() << endl;
}
This call should immediately return 0, but it hangs, until enter is pressed,
and then returns 1, which is then written.
How come the bug was marked fixed, when it isn't fixed?
/David