https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110378
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> --- I have proposed a patch addressing the simplest case of the three on the mailing list: https://gcc.gnu.org/pipermail/gcc-patches/2023-July/625895.html