https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115897
--- Comment #10 from Matthias Kretz (Vir) <mkretz at gcc dot gnu.org> --- I applied your patch on recent trunk and the original code compiles as expected. 👍 I can also test your second patch in that thread if you think that would help.