https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100079
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'd say it is valid rather than invalid, it is accepted with // using SomeTypeAlias = int; and clang++ on godbolt accepts it in c++20 mode too.