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]

[Bug libstdc++/30711] Ifstream bug using Red Hat g++-4.1.0 compared to g++-4.0.2



------- Comment #3 from pcarlini at suse dot de  2007-02-06 19:32 -------
I cannot reproduce the issue on official FSF compiler more recent than gcc4.0.0
(note that vendor releases are not supported here, sorry). In fact, since that
release we are implementing the resolution of DR 409:

  http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#409

which implies that an user-code clear after a failed open is not necessary
anymore. Also note that, in general, if you are not sure about the
implementation of DR 409 in a given library, portable code should always call
clear after a failed open (of course, constructing a new fstream, as per your
Try 2, always works).


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
          Component|c++                         |libstdc++
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30711


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