This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/8874: using rdbuf to copy from an empty file sets the fail bit on the target stream
- From: bkoz at gcc dot gnu dot org
- To: bkoz at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nick dot wells at jobstats dot co dot uk, nobody at gcc dot gnu dot org
- Date: 11 Dec 2002 18:11:46 -0000
- Subject: Re: libstdc++/8874: using rdbuf to copy from an empty file sets the fail bit on the target stream
- Reply-to: bkoz at gcc dot gnu dot org, bkoz at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nick dot wells at jobstats dot co dot uk, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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