[Bug libstdc++/29026] std::basic_istream<>::sentry() fails to catch when reading whitespace
jimrees at itasoftware dot com
gcc-bugzilla@gcc.gnu.org
Mon Sep 11 21:10:00 GMT 2006
------- Comment #2 from jimrees at itasoftware dot com 2006-09-11 21:10 -------
fyi, a "real world" example of how this comes up? Construct a std::ifstream
using a pathname to a directory instead of a file. Under Linux and MacOS at
least, the basic_filebuf code is happy to open such a pathname, but then will
get EISDIR when it first tries to read, and will throw an exception.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29026
More information about the Gcc-bugs
mailing list