]> 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>
Thu, 4 Apr 2024 21:18:56 +0000 (17:18 -0400)
commit801e82acd6b4f0cf863529875947e394899ea7b9
tree07f31a4279973af8794c38ca7eff160e7c221c8e
parentca56b43105fc09021ec445f1978a17cd85ae5e0c
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>
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp2a/class-deduction-alias19.C [new file with mode: 0644]