Re: [PATCH] istream_iterator: unexpected read in ctor

2017-08-25 Thread Tim Song
On Thu, Aug 24, 2017 at 4:55 AM, Petr Ovtchenkov wrote: > istream_iterator do unexpected read from stream > when initialized by istream&. > This is pretty much required by the specification. See the discussion in http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0738r0.html And the "fix"

Re: [PATCH] istream_iterator: unexpected read in ctor

2017-08-24 Thread Petr Ovtchenkov
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81964 On Thu, 24 Aug 2017 11:55:58 +0300 Petr Ovtchenkov wrote: > istream_iterator do unexpected read from stream > when initialized by istream&. > > It is not required from increment operators of istream_iterator > that _M_ok will be true as precond

[PATCH] istream_iterator: unexpected read in ctor

2017-08-24 Thread Petr Ovtchenkov
istream_iterator do unexpected read from stream when initialized by istream&. It is not required from increment operators of istream_iterator that _M_ok will be true as precondition. --- libstdc++-v3/include/bits/stream_iterator.h| 19 +- .../24_iterators/istream_iterator/81964.cc