[Bug libstdc++/71431] ifstream::rdbuf directory

dimaqq at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 6 11:14:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71431

Dima Tisnek <dimaqq at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
         Resolution|INVALID                     |---

--- Comment #3 from Dima Tisnek <dimaqq at gmail dot com> ---
@Jonathan, arguably, `std::ifstream f("/");` should not through, as underlying
`open()` succeeds. No read call is made at that point. That was the nature of
bug  36564 They site ""current standard" at the time.

(Personally I'd prefer ifstream creation to fail, but I can live with that).

Successive read operations really ought to set some error bit.


More information about the Gcc-bugs mailing list