c++: alias CTAD in unevaluated context [PR101233]
authorPatrick Palka <ppalka@redhat.com>
Fri, 16 Jul 2021 20:21:13 +0000 (16:21 -0400)
committerPatrick Palka <ppalka@redhat.com>
Fri, 16 Jul 2021 20:21:13 +0000 (16:21 -0400)
commita8b3861496bffae8b813ea196c1c5b27f79fbe69
tree5c72154a35c56087ea848454c431ebf83b23a335
parentd04b0c75794545f1f7a942764285e21eaf2915a1
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.
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp2a/class-deduction-alias10.C [new file with mode: 0644]