https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99613
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50399 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50399&action=edit gcc11-pr99613.patch Untested patch that swaps the two calls.