https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101233
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:9107b139f4492d504df37e943882405e6aefdb7e commit r11-8762-g9107b139f4492d504df37e943882405e6aefdb7e Author: Patrick Palka <ppa...@redhat.com> Date: Fri Jul 16 16:21:13 2021 -0400 c++: alias CTAD in unevaluated context [PR101233] This is the alias CTAD version of the CTAD bug PR93248, and the fix is the same: clear cp_unevaluated_operand so that the entire chain of DECL_ARGUMENTS gets substituted. PR c++/101233 gcc/cp/ChangeLog: * pt.c (alias_ctad_tweaks): Clear cp_unevaluated_operand for substituting DECL_ARGUMENTS. gcc/testsuite/ChangeLog: * g++.dg/cpp2a/class-deduction-alias10.C: New test. (cherry picked from commit a8b3861496bffae8b813ea196c1c5b27f79fbe69)