This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

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


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