c++: add DECL_IMPLICIT_TEMPLATE_PARM_P macro
commitc51eafc1a185f7ad00820f11a7aa7bf4a82093fa
authorJason Merrill <jason@redhat.com>
Tue, 17 Oct 2023 22:01:28 +0000 (17 18:01 -0400)
committerJason Merrill <jason@redhat.com>
Mon, 20 Nov 2023 02:52:35 +0000 (19 21:52 -0500)
treee09871e7a86ce253d752dbdc7ed1dd19087d3c70
parent0d734c79387191005c909c54c7556a88254c401b
c++: add DECL_IMPLICIT_TEMPLATE_PARM_P macro

Let's use a more informative name instead of DECL_VIRTUAL_P directly.

gcc/cp/ChangeLog:

* cp-tree.h (DECL_TEMPLATE_PARM_CHECK): New.
(DECL_IMPLICIT_TEMPLATE_PARM_P): New.
(decl_template_parm_check): New.
* mangle.cc (write_closure_template_head): Use it.
* parser.cc (synthesize_implicit_template_parm): Likewise.
* pt.cc (template_parameters_equivalent_p): Likewise.
gcc/cp/cp-tree.h
gcc/cp/mangle.cc
gcc/cp/parser.cc
gcc/cp/pt.cc