Article View: gnu.g++.bug
Article #1705(none)
From: Silvio Levy
Date: Thu, 23 Feb 1989 21:48
Date: Thu, 23 Feb 1989 21:48
15 lines
741 bytes
741 bytes
Sorry if you've fixed this already.
In g++, version 1.32.0, file stream.cc, the function istream& scan()
does not return a value when the initial test (if (readable())) fails.
This causes erratic behavior such as a core dump in the following
program (with empty standard input):
#include <stream.h>
main() {
int i;
cin >> i >> i >> i;
}
Silvio Levy
levy@princeton.edu
Technical Details
Message-ID:
<8902232148.AA10053@fine.Princeton.EDU>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!FINE.PRINCETON.EDU!levyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!FINE.PRINCETON.EDU!levy From: levy@FINE.PRINCETON.EDU (Silvio Levy) Newsgroups: gnu.g++.bug Subject: (none) Message-ID: <8902232148.AA10053@fine.Princeton.EDU> Date: 23 Feb 89 21:48:30 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 15