(This is uncovered while working on #75697)
6591149 results in an extension where Clang accepts templates with redundant template headers. However, this is clearly ill-formed and no other compilers would accept it. I think we should probably remove the extension in Sema::MatchTemplateParametersToScopeSpecifier() and reject such templates in the end.
https://compiler-explorer.com/z/TcPGjWMGM