aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-data-ref.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2021-01-20 09:44:33 -0500
committerPatrick Palka <ppalka@redhat.com>2021-01-20 09:44:33 -0500
commitcafcfcb5840b62d9fc80c12192189351e995a4f2 (patch)
tree74a8e556110a58df2190f0b14ae701e68cfc3fde /gcc/tree-data-ref.c
parent79e1251b642db038df276153c9f2ec6b82e56162 (diff)
downloadgcc-cafcfcb5840b62d9fc80c12192189351e995a4f2.zip
gcc-cafcfcb5840b62d9fc80c12192189351e995a4f2.tar.gz
gcc-cafcfcb5840b62d9fc80c12192189351e995a4f2.tar.bz2
c++: Fix tsubsting CLASS_PLACEHOLDER_TEMPLATE [PR95434]
Here, during partial instantiation of the generic lambda, we do tsubst_copy on the CLASS_PLACEHOLDER_TEMPLATE for U{0} which yields a (level-lowered) TEMPLATE_TEMPLATE_PARM rather than the corresponding TEMPLATE_DECL. This later confuses do_class_deduction which expects that a CLASS_PLACEHOLDER_TEMPLATE is always a TEMPLATE_DECL. gcc/cp/ChangeLog: PR c++/95434 * pt.c (tsubst) <case TEMPLATE_TYPE_PARM>: If tsubsting CLASS_PLACEHOLDER_TEMPLATE yields a TEMPLATE_TEMPLATE_PARM, adjust to its TEMPLATE_TEMPLATE_PARM_TEMPLATE_DECL. gcc/testsuite/ChangeLog: PR c++/95434 * g++.dg/cpp2a/lambda-generic9.C: New test.
Diffstat (limited to 'gcc/tree-data-ref.c')
0 files changed, 0 insertions, 0 deletions