https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95371

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:2fb595f8348e164d2f06536ba98322616eeaeeb6

commit r11-734-g2fb595f8348e164d2f06536ba98322616eeaeeb6
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri May 29 16:55:52 2020 -0400

    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.

Reply via email to