libstdc++/7744: streambuf::in_avail() always returns 0 (zero) for cin input stream

ljrittle@gcc.gnu.org ljrittle@gcc.gnu.org
Wed Aug 28 14:47:00 GMT 2002


Synopsis: streambuf::in_avail() always returns 0 (zero) for cin input stream

State-Changed-From-To: open->analyzed
State-Changed-By: ljrittle
State-Changed-When: Wed Aug 28 14:47:49 2002
State-Changed-Why:
    Please read sections 27.5.2.2.3 27.5.2.4.3 of ISO-C++-14882.
    It is my belief that an implementation shall always be able
    to return 0.  Your portable application must handle an
    implementation that always returns 0.  At least one famous
    C++ (TC++PLSE) author agrees with my belief.  Thus, this
    is a QoI issue not a bug (reassigned to change-request
    from bug).  We agree that the current implementation is
    poor.  Please feel free to provide a patch that refines
    our implementation by submitting a patch.

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



More information about the Gcc-bugs mailing list