This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5297: operator!() const incorrect for fstream class
- From: paolo at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org, us at ooc dot de
- Date: 7 Jan 2002 21:46:37 -0000
- Subject: Re: libstdc++/5297: operator!() const incorrect for fstream class
- Reply-to: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, paolo at gcc dot gnu dot org, us at ooc dot de, gcc-gnats at gcc dot gnu dot org
Synopsis: operator!() const incorrect for fstream class
Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Mon Jan 7 13:46:37 2002
Responsible-Changed-Why:
Analyzed.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Mon Jan 7 13:46:37 2002
State-Changed-Why:
This has nothing to do with operator!().
More simply, the open mode in|out|app is *not* allowed: see,
f.i. Josuttis p. 632 or Langer/Kreft p. 43.
Therefore, conformly to what prescribed by the standard, the
open fails and !afile is in any case true.
Thanks for your report,
Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5297