https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103057
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:f3e6ef7d873885ffaa0db7f4185364bbd7a70505 commit r12-6872-gf3e6ef7d873885ffaa0db7f4185364bbd7a70505 Author: Jason Merrill <ja...@redhat.com> Date: Tue Jan 25 15:12:16 2022 -0500 c++: alias template and typename [PR103057] Usually we handle DR1558 substitution near the top of tsubst, but in this case while substituting TYPENAME_TYPE we were passing an alias specialization to tsubst_aggr_type, which ignored its aliasness. PR c++/103057 gcc/cp/ChangeLog: * pt.cc (tsubst_aggr_type): Call tsubst for alias template specialization. gcc/testsuite/ChangeLog: * g++.dg/cpp0x/alias-decl-void1.C: New test.