[Bug libstdc++/29026] std::basic_istream::sentry() fails to catch when reading whitespace

2006-09-12 Thread pcarlini at suse dot de
--- Comment #6 from pcarlini at suse dot de 2006-09-12 08:28 --- Basing on Martin' comments, I think this PR should bu suspended, waiting for the outcome of DR 309 (certainly directly relevant). -- pcarlini at suse dot de changed: What|Removed

[Bug libstdc++/29026] std::basic_istream::sentry() fails to catch when reading whitespace

2006-09-11 Thread jimrees at itasoftware dot com
--- Comment #1 from jimrees at itasoftware dot com 2006-09-11 21:07 --- Created an attachment (id=12228) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=12228action=view) bug reproducer program bug reproducer, compile with g++ - any flags, but do not disable exceptions. --

[Bug libstdc++/29026] std::basic_istream::sentry() fails to catch when reading whitespace

2006-09-11 Thread jimrees at itasoftware dot com
--- 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

[Bug libstdc++/29026] std::basic_istream::sentry() fails to catch when reading whitespace

2006-09-11 Thread sebor at roguewave dot com
--- Comment #3 from sebor at roguewave dot com 2006-09-11 21:25 --- This sounds like it might be related to http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#309. If so, and if this case is important to you (the submitter) it might be helpful to give the committee a little

[Bug libstdc++/29026] std::basic_istream::sentry() fails to catch when reading whitespace

2006-09-11 Thread jimrees at itasoftware dot com
--- Comment #4 from jimrees at itasoftware dot com 2006-09-11 22:23 --- Sure, the issue sounds interesting, and the committee's resolution statement is definitely lame. Bug issue 309 seems to be more about what is _specified_ about sentry::sentry()'s behavior, and I don't necessarily

[Bug libstdc++/29026] std::basic_istream::sentry() fails to catch when reading whitespace

2006-09-11 Thread sebor at roguewave dot com
--- Comment #5 from sebor at roguewave dot com 2006-09-12 00:16 --- The reason why I think library issue 309 may be relevant is because while the arithmetic extraction operator() is a formatted input function (and thus subject to 27.6.1.1, p4, and required to begin by constructing a