https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95797
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |NEW Resolution|DUPLICATE |--- --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- But this is still accepted: #include <memory> static_assert( (std::allocator<int>{}.deallocate(new int, 1), true));