https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82610
Pedro Alves <palves at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |palves at redhat dot com --- Comment #4 from Pedro Alves <palves at redhat dot com> --- I think it makes sense to keep including <memory> in unique-ptr.h, because the header needs that, and projects other than GCC will want to use this file. Including it in both system.h and leaving it in unique-ptr.h should work fine for GCC, assuming <memory> has proper include guards? (IMO, #pragma poison should ignore references in system headers and then these weird contortions GCC goes through in system.h would no longer be necessary.)