This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/1620: excessive striking <Enter> for cin and incorrect string input
- To: gcc-gnats at gcc dot gnu dot org
- Subject: libstdc++/1620: excessive striking <Enter> for cin and incorrect string input
- From: wanderer at rsu dot ru
- Date: 11 Jan 2001 18:56:55 -0000
- Reply-To: wanderer at rsu dot ru
>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: