Remove code in check_out_of_consteval_use

This commit is contained in:
Marek Polacek
2026-01-13 12:13:45 -05:00
parent 6575c09895
commit d8140cda31

View File

@@ -8132,16 +8132,6 @@ check_out_of_consteval_use (tree expr, bool complain/*=true*/)
if (!flag_reflection || in_immediate_context ())
return false;
/* Don't complain if we're generating the body for a synthesized method. */
if (current_function_decl)
{
if (DECL_CONSTRUCTOR_P (current_function_decl)
&& DECL_ARTIFICIAL (current_function_decl))
return false;
if (decl_in_std_meta_p (current_function_decl))
return false;
}
auto walker = [](tree *tp, int *walk_subtrees, void *) -> tree
{
tree t = *tp;