Fixed #23892 -- Made deconstructible classes forwards compatible