This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++/1620: excessive striking <Enter> for cin and incorrect string input



>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:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]