mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-21 19:35:36 -05:00
Remove code in check_out_of_consteval_use
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user