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]

Bug still in 3.0.1


Hello there.

A month ago I submitted the following as a bug in gcc
3.0:

#include <iostream>

int main()
{
        std::cout << std::cin.rdbuf()->in_avail() <<
std::endl;

        return 0;
}

The bug is that instead of just writing 0, this
program hangs until some input is ready (pressing
enter normally), and then writes 0. According to the
standard (and common sense), this program should just
write 0 immediately and then exit.

This bug wasn't there in gcc 2.95.3, so why wasn't it
fixed in gcc 3.0.1, when the bug was discovered (and
acknowledged as such) a month ago?

David


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/


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