This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Bug still in 3.0.1
- To: gcc at gcc dot gnu dot org
- Subject: Bug still in 3.0.1
- From: David Rasmussen <pinkfloydhomer at yahoo dot com>
- Date: Fri, 24 Aug 2001 14:22:52 -0700 (PDT)
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/