]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: alias CTAD and template template parm [PR114377]
authorcenturion <centurion009@proton.me>
Wed, 27 Mar 2024 18:36:37 +0000 (18:36 +0000)
committerJason Merrill <jason@redhat.com>
Wed, 1 May 2024 19:30:33 +0000 (15:30 -0400)
commit60e1e13f458f1fcfb05a30ace57fa682461e2732
tree252b14c548dffdf3fddac4fa91d93029cfc26390
parent7bc362ea61e5bf552356aa862beb7845fe50a47c
c++: alias CTAD and template template parm [PR114377]

To match all the other places that pull a _TEMPLATE_PARM out of a
_DECL (get_template_parm_index, etc.).

This change is too small to be legally significant for copyright.

PR c++/114377

gcc/cp/ChangeLog:

* pt.cc (find_template_parameter_info::found): Use TREE_TYPE for
TEMPLATE_DECL instead of DECL_INITIAL.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/class-deduction-alias19.C: New test.

Reviewed-by: Jason Merrill <jason@redhat.com>
(cherry picked from commit 801e82acd6b4f0cf863529875947e394899ea7b9)
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp2a/class-deduction-alias19.C [new file with mode: 0644]