https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99387
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> --- This PR seems to have been fixed by r12-6773: commit 09845ad7569bac27c3a1dc7b410d9df764d2ca06 Author: Patrick Palka <ppa...@redhat.com> Date: Thu Jan 20 09:25:49 2022 -0500 c++: CTAD inside alias template [PR91911, PR103672] Note the Comment 1 test now compiles fine too. clang++ rejects Comment 3 too.