extern bool dependent_splice_p (const_tree) ATTRIBUTE_PURE;
extern tree reflection_mangle_prefix (tree, char [3]);
extern void check_consteval_only_fn (tree);
-extern bool reflection_function_template_p (tree) ATTRIBUTE_PURE;
+extern bool reflection_function_template_p (const_tree) ATTRIBUTE_PURE;
extern void dump_data_member_spec (pretty_printer *, tree);
/* Inline bodies. */
|| VAR_P (t)
|| TREE_CODE (t) == CONST_DECL
|| TREE_CODE (t) == FUNCTION_DECL
- || DECL_FUNCTION_TEMPLATE_P (OVL_FIRST (const_cast<tree> (t)))
+ || reflection_function_template_p (t)
|| variable_template_p (const_cast<tree> (t)))
return true;
/* Returns true iff X is a reflection of a function template. */
bool
-reflection_function_template_p (tree x)
+reflection_function_template_p (const_tree x)
{
- return really_overloaded_fn (x);
+ return (DECL_FUNCTION_TEMPLATE_P
+ (OVL_FIRST (MAYBE_BASELINK_FUNCTIONS (const_cast<tree> (x)))));
}
#include "gt-cp-reflect.h"