https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104606
--- Comment #21 from Jonathan Wakely <redi at gcc dot gnu.org> --- That seems like a more reliable fix than the mysterious reordering of the template args. Would you like to send it to the lists and push it?