diff options
author | Jason Merrill <jason@redhat.com> | 2020-11-25 17:05:24 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-12-04 17:47:05 -0500 |
commit | a95753214b55d21e5b44eeb098cccf88d44c94dd (patch) | |
tree | baf54176edc281d78bf9eb314bb06b74aa59a089 /gcc/print-rtl-function.c | |
parent | df933e307b1950ce12472660dcac1765b8eb431d (diff) | |
download | gcc-a95753214b55d21e5b44eeb098cccf88d44c94dd.zip gcc-a95753214b55d21e5b44eeb098cccf88d44c94dd.tar.gz gcc-a95753214b55d21e5b44eeb098cccf88d44c94dd.tar.bz2 |
c++: Fix deduction from auto template parameter [PR93083]
The check in do_class_deduction to handle passing one class placeholder
template parm as an argument for itself needed to be extended to also handle
equivalent parms from other templates.
gcc/cp/ChangeLog:
PR c++/93083
* pt.c (convert_template_argument): Handle equivalent placeholders.
(do_class_deduction): Look through EXPR_PACK_EXPANSION, too.
gcc/testsuite/ChangeLog:
PR c++/93083
* g++.dg/cpp2a/nontype-class40.C: New test.
Diffstat (limited to 'gcc/print-rtl-function.c')
0 files changed, 0 insertions, 0 deletions