http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46056
Alexander Klimov <alserkli at inbox dot ru> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #22086|0 |1 is obsolete| | --- Comment #9 from Alexander Klimov <alserkli at inbox dot ru> 2010-10-20 14:19:23 UTC --- Created attachment 22094 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22094 simple testcase Your patch seems to work, thanks! Btw, the original "simple testcase" did not contain It(const It&){ ++it_counter; } and thus would fail (It() is called twice, while ~It() -- thrice).