http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60081 --- Comment #2 from lmat <dartmetrash at gmail dot com> --- Right, changed unique_ptr to shared_ptr in my code base and the error goes away. Have you seen if this bug still appears on a 4.8 build ?