public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/2523: cin polling for input
@ 2001-04-09 17:56 yasir_home
0 siblings, 0 replies; only message in thread
From: yasir_home @ 2001-04-09 17:56 UTC (permalink / raw)
To: gcc-gnats
>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:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-09 17:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-09 17:56 libstdc++/2523: cin polling for input yasir_home
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).