c++: requires and using-decl [PR113498]
commit1338ad23ff3c1e4f552cdb64e36cef12eda2e050
authorJason Merrill <jason@redhat.com>
Fri, 19 Jan 2024 18:11:05 +0000 (19 13:11 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 19 Jan 2024 19:21:14 +0000 (19 14:21 -0500)
tree11e50fb75079322dde048e94244537796430878a
parent631a922e5c8578a1c878b69f1651d482b661ef4a
c++: requires and using-decl [PR113498]

get_template_info was crashing because it assumed that any decl with
DECL_LANG_SPECIFIC could use DECL_TEMPLATE_INFO.  It's more complicated than
that.

PR c++/113498

gcc/cp/ChangeLog:

* pt.cc (decl_template_info): New fn.
(get_template_info): Use it.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/concepts-using4.C: New test.
gcc/cp/pt.cc
gcc/testsuite/g++.dg/cpp2a/concepts-using4.C [new file with mode: 0644]