libstdc++/1620: excessive striking <Enter> for cin and incorrect string input
wanderer@rsu.ru
wanderer@rsu.ru
Thu Jan 11 11:06:00 GMT 2001
>Number: 1620
>Category: libstdc++
>Synopsis: excessive striking <Enter> for cin and incorrect string input
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 11 11:06:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Vladimir Merzliakov
>Release: gcc version 2.97 20010110 (experimental)
>Organization:
>Environment:
i386 FreeBSD 4.2-STABLE
>Description:
Program requires the excessive keystroke <Enter> when entering data and incorrect reads the data.
Protocol of programm work:
aaa<Enter>
<Enter>
s='a'
but must be
aaa<Enter>
s='aaa'
Also incorrect work std::getline(istream,stringdelim)
>How-To-Repeat:
#include<string>
#include<iostream>
int main() {
using namespace std;
string s;
cin >> s;
cout << endl << "s='" << s << "'" << endl;
};
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list