diff options
author | Jason Merrill <jason@redhat.com> | 2020-05-29 16:55:52 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-05-29 18:16:54 -0400 |
commit | 2fb595f8348e164d2f06536ba98322616eeaeeb6 (patch) | |
tree | 62f985a6ba84d868d4e1829dd6f69b38054c4840 /gcc/fortran/class.c | |
parent | 33e23881aae0549572cc23a2520c5094a2ffede9 (diff) | |
download | gcc-2fb595f8348e164d2f06536ba98322616eeaeeb6.zip gcc-2fb595f8348e164d2f06536ba98322616eeaeeb6.tar.gz gcc-2fb595f8348e164d2f06536ba98322616eeaeeb6.tar.bz2 |
c++: Template template parameter in constraint [PR95371]
any_template_parm_r was assuming that the DECL_TEMPLATE_RESULT of a template
will have a suitable TEMPLATE_INFO from which we can look at the generic
arguments for that template. But that wasn't true for a template template
parameter; this patch makes it so.
gcc/cp/ChangeLog:
PR c++/95371
* pt.c (process_template_parm): Set DECL_TEMPLATE_INFO
on the DECL_TEMPLATE_RESULT.
gcc/testsuite/ChangeLog:
PR c++/95371
* g++.dg/cpp2a/concepts-ttp1.C: New test.
Diffstat (limited to 'gcc/fortran/class.c')
0 files changed, 0 insertions, 0 deletions