https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116336
--- Comment #6 from Vladimir Makarov <vmakarov at gcc dot gnu.org> --- (In reply to Sam James from comment #5) > This works for me on trunk now. I assume Vlad's fix for PR116234 may have > done it. Yes, exactly. https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=decc6c0d4d909ce510b6533c48d70d0b353f909a solves this. In any case I'll add this code as a test.