http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46906
Daniel Krügler <daniel.kruegler at googlemail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler at | |googlemail dot com --- Comment #4 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-09-05 09:48:17 UTC --- IMO the example program is broken and cannot be used to proof violation of contract of the library. This is so, because istreambuf_iterator is an input iterator and any usage of operator++ potentially invalidates copies of the iterator (see FDIS, Table 107, expression r++).