https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101233

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:a8b3861496bffae8b813ea196c1c5b27f79fbe69

commit r12-2378-ga8b3861496bffae8b813ea196c1c5b27f79fbe69
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.

Reply via email to