This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

Re: libstdc++/9024: Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)


Synopsis: Input fails after call to basic_filebuf<>::pubsetbuf(0, 0)

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Fri Dec 20 11:07:04 2002
Responsible-Changed-Why:
    Analyzed.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Fri Dec 20 11:07:04 2002
State-Changed-Why:
    The current behaviour seems standard conforming: according
    to 27.8.1.4,10, _only_ if setbuf(0,0) is called before _any_
    I/O has occurred the stream becomes unbuffered, otherwise
    the results are implementation defined.
    Indeed, if the _second_ pubsetbuf call (that at line 52)
    is removed from the testcase, basic_ifstream is usable
    without problems as expected.

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


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