------- 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

Reply via email to