http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58822
--- Comment #24 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Michi Henning from comment #20) > I'm pretty sure that I'm not using anything in shared_ptr that's outside the > standard, and the standard way to get access to shared_ptr is to include > <memory>. If I include something else, I end up in implementation territory, > don't I? Yes, but you're trying to report a bug specific to this implementation, not in the standard. If you still haven't reduced this I'll do so, but it might have to wait a week or two.