https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97446
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Just like PR 97401. Please try to remember that diagnostics are not required for errors in uninstantiated templates, so it's not a bug.