diff options
author | Jason Merrill <jason@redhat.com> | 2022-02-10 17:57:38 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-02-15 00:06:38 -0500 |
commit | 2c3309e3d0f5cb8f298f7604848d115f0992e04f (patch) | |
tree | 77fbd71095002ce75119a13970fbc14dd801fa8e /gcc/tree-vectorizer.h | |
parent | 1f8a09d2f3c69fff32729c4fa0680c4621babb83 (diff) | |
download | gcc-2c3309e3d0f5cb8f298f7604848d115f0992e04f.zip gcc-2c3309e3d0f5cb8f298f7604848d115f0992e04f.tar.gz gcc-2c3309e3d0f5cb8f298f7604848d115f0992e04f.tar.bz2 |
c++: TTP in member alias template [PR104107]
In the first testcase, coerce_template_template_parms was adding too much of
outer_args when coercing to match P's template parameters, so that when
substituting into the 'const T&' parameter we got an unrelated template
argument for T. We should only add outer_args when the argument template is
a nested template.
PR c++/104107
PR c++/95036
gcc/cp/ChangeLog:
* pt.cc (coerce_template_template_parms): Take full parms.
Avoid adding too much of outer_args.
(coerce_template_template_parm): Adjust.
(template_template_parm_bindings_ok_p): Adjust.
(convert_template_argument): Adjust.
gcc/testsuite/ChangeLog:
* g++.dg/cpp0x/alias-decl-ttp2.C: New test.
* g++.dg/cpp1z/ttp2.C: New test.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions