public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3647: in_avail() is not working according to the ISO standard
@ 2001-11-04 12:49 bkoz
  0 siblings, 0 replies; 5+ messages in thread
From: bkoz @ 2001-11-04 12:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-gnats, gcc-prs, pinkfloydhomer, pme

Synopsis: in_avail() is not working according to the ISO standard

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Thu Nov 15 13:28:53 2001
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3647&database=gcc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libstdc++/3647: in_avail() is not working according to the ISO standard
@ 2001-11-04 13:35 bkoz
  0 siblings, 0 replies; 5+ messages in thread
From: bkoz @ 2001-11-04 13:35 UTC (permalink / raw)
  To: pme; +Cc: gcc-prs

The following reply was made to PR libstdc++/3647; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
  pinkfloydhomer@yahoo.com, pme@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/3647: in_avail() is not working according to the ISO standard
Date: 15 Nov 2001 21:28:54 -0000

 Synopsis: in_avail() is not working according to the ISO standard
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: bkoz
 State-Changed-When: Thu Nov 15 13:28:53 2001
 State-Changed-Why:
     Fixed.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3647&database=gcc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libstdc++/3647: in_avail() is not working according to the ISO standard
@ 2001-10-29 11:14 bkoz
  0 siblings, 0 replies; 5+ messages in thread
From: bkoz @ 2001-10-29 11:14 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, pinkfloydhomer, pme

Synopsis: in_avail() is not working according to the ISO standard

State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Mon Oct 29 11:14:37 2001
State-Changed-Why:
    Fixed

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3647&database=gcc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: libstdc++/3647: in_avail() is not working according to the ISO standard
@ 2001-07-11 13:06 pme
  0 siblings, 0 replies; 5+ messages in thread
From: pme @ 2001-07-11 13:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, pinkfloydhomer, pme

Synopsis: in_avail() is not working according to the ISO standard

Responsible-Changed-From-To: unassigned->pme
Responsible-Changed-By: pme
Responsible-Changed-When: Wed Jul 11 13:06:10 2001
Responsible-Changed-Why:
    Because.
State-Changed-From-To: open->analyzed
State-Changed-By: pme
State-Changed-When: Wed Jul 11 13:06:10 2001
State-Changed-Why:
    Confirmed as a bug; std::basic_filebuf::showmanyc() is
    calling underflow().

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3647&database=gcc


^ permalink raw reply	[flat|nested] 5+ messages in thread

* libstdc++/3647: in_avail() is not working according to the ISO standard
@ 2001-07-11  6:06 pinkfloydhomer
  0 siblings, 0 replies; 5+ messages in thread
From: pinkfloydhomer @ 2001-07-11  6:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3647
>Category:       libstdc++
>Synopsis:       in_avail() is not working according to the ISO standard
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 11 06:06:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     pinkfloydhomer@yahoo.com
>Release:        gcc version 3.0
>Organization:
>Environment:
cygwin
>Description:
When calling cin.rdbuf()->in_avail() without any input in the buffer, in_avail() blocks until input is ready, and then returns 1, instead of the number of characters read. This is not adhering to the ISO standard. gcc 2.95.x didn't do that. It correctly returns 0 when nothing is available etc.
>How-To-Repeat:
#include <iostream>

using namespace std;

int main()
{       // This call blocks, which it shouldn't.
        cout << cin.rdbuf()->in_avail() << endl;
}
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-15 21:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-04 12:49 libstdc++/3647: in_avail() is not working according to the ISO standard bkoz
  -- strict thread matches above, loose matches on Subject: below --
2001-11-04 13:35 bkoz
2001-10-29 11:14 bkoz
2001-07-11 13:06 pme
2001-07-11  6:06 pinkfloydhomer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).