This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: libstdc++/98
- To: Brad Garcia <bgarcia at laurelnetworks dot com>
- Subject: Re: libstdc++/98
- From: brent verner <brent at rcfile dot org>
- Date: Thu, 2 Nov 2000 13:40:19 -0500
- Cc: stdc++ <libstdc++ at sourceware dot cygnus dot com>
- References: <20001102113701.9965.qmail@sourceware.cygnus.com>
On 02 Nov 2000 at 11:37 (-0000), Brad Garcia wrote:
|
| I was reproducing it with the last snapshot (2.8.1, as stated in the pr).
|
| If you have any idea what change might have fixed it, let me know.
| Otherwise, it sounds like you can close out this PR.
Brad,
the following patch to your version of bits/istream.tcc _should_ fix
the problem you desribe.
cheers.
brent
Index: istream.tcc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/include/bits/istream.tcc,v
retrieving revision 1.1
retrieving revision 1.2
diff -c -p -3 -r1.1 -r1.2
*** istream.tcc 2000/10/05 11:27:01 1.1
--- istream.tcc 2000/10/06 07:12:32 1.2
*************** namespace std {
*** 588,598 ****
bool __testdelim = __c == __idelim;
bool __testeof = __c == __eof;
bool __testput = true;
- streamsize __n = __this_sb->in_avail();
! while (_M_gcount <= __n && !__testeof && !__testdelim
&& (__testput = __sb.sputc(traits_type::to_char_type(__c))
! != __eof))
{
++_M_gcount;
__c = __this_sb->sbumpc();
--- 588,597 ----
bool __testdelim = __c == __idelim;
bool __testeof = __c == __eof;
bool __testput = true;
! while (!__testeof && !__testdelim
&& (__testput = __sb.sputc(traits_type::to_char_type(__c))
! != __eof))
{
++_M_gcount;
__c = __this_sb->sbumpc();