From c51eafc1a185f7ad00820f11a7aa7bf4a82093fa Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 17 Oct 2023 18:01:28 -0400 Subject: 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/mangle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/mangle.cc') diff --git a/gcc/cp/mangle.cc b/gcc/cp/mangle.cc index afa68da..5137305 100644 --- a/gcc/cp/mangle.cc +++ b/gcc/cp/mangle.cc @@ -1744,7 +1744,7 @@ write_closure_template_head (tree tmpl) continue; parm = TREE_VALUE (parm); - if (DECL_VIRTUAL_P (parm)) + if (DECL_IMPLICIT_TEMPLATE_PARM_P (parm)) // A synthetic parm, we're done. break; -- cgit v1.1