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++/8874: using rdbuf to copy from an empty file sets the fail bit on the target stream


Synopsis: using rdbuf to copy from an empty file sets the fail bit on the target stream

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Wed Dec 11 10:11:46 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Wed Dec 11 10:11:46 2002
State-Changed-Why:
    This is not a bug.
    
    27.6.2.5.3 - basic_ostream::operator<< [lib.ostream.inserters]
    
    Says:
    
    -8- If the function inserts no characters, it calls setstate(failbit)
    
    -benjamin

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


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