Merge pull request #6653 from masterleinad/remove_deprecation_allocation_mechanism_gcc_11_0Remove deprecation warning for AllocationMechanism for gcc <11.0