https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100032
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:945c2afcb390dd040510ee7a2dc996ad204031c5 commit r9-10162-g945c2afcb390dd040510ee7a2dc996ad204031c5 Author: Jason Merrill <ja...@redhat.com> Date: Tue Apr 13 14:49:29 2021 -0400 c++: alias template equivalence and cv-quals [PR100032] We also need to check that the cv-qualifiers are the same. gcc/cp/ChangeLog: PR c++/100032 * pt.c (get_underlying_template): Compare TYPE_QUALS. gcc/testsuite/ChangeLog: PR c++/100032 * g++.dg/cpp0x/alias-decl-equiv1.C: New test.