https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118199
--- Comment #17 from Simon Martin <simartin at gcc dot gnu.org> --- Patch submitted in https://gcc.gnu.org/pipermail/gcc-patches/2025-January/672616.html (the fix is not a simple tweak of the fix for PR c++/114619).