http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56166
Tolga <fasdfasdas at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fasdfasdas at gmail dot com --- Comment #7 from Tolga <fasdfasdas at gmail dot com> --- I can confirm this on g++ 4.8.1. I think I can also confirm that it is about reference counting, thanks to this report, I was able to work around it though.