in_avail() bug not fixed in 3.0.3

David Rasmussen pinkfloydhomer@yahoo.com
Fri Dec 14 08:05:00 GMT 2001


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



More information about the Gcc mailing list