https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117315
--- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I have to double check something but this might be an abusing the malloc attribute. Specifically this part: "moreover no pointers to valid objects occur in any storage addressed by P." which is violated by: tree->data_allocator = data_scope;