libstdc++/5297: operator!() const incorrect for fstream class

paolo@gcc.gnu.org paolo@gcc.gnu.org
Mon Jan 7 13:46:00 GMT 2002


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



More information about the Gcc-prs mailing list