libstdc++/2523: cin polling for input
yasir_home@bigfoot.com
yasir_home@bigfoot.com
Mon Apr 9 17:56:00 GMT 2001
>Number: 2523
>Category: libstdc++
>Synopsis: cin polling for input
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 09 17:56:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: yasir_home@bigfoot.com
>Release: CVS gcc main branch
>Organization:
>Environment:
Red Hat 6.2
>Description:
When I run the following code
#include <iostream>
using namespace std;
int main()
{
int i;
cin >> i;
cout << "i == " << i << endl;
}
cin doesn't wait for input - the cout code gets executed with a random value for i.
I'm using gcc from CVS, updated a few hours ago.
When I run the same code under gcc 2.95.3 it works fine.
>How-To-Repeat:
build and run the code given in the description
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list