Use DECL_MAYBE_DELETED

This commit is contained in:
Marek Polacek
2026-01-09 18:52:04 -05:00
parent 3bf5ff8da1
commit 38397145f2

View File

@@ -6609,10 +6609,7 @@ class_members_of (location_t loc, const constexpr_ctx *ctx, tree r,
/* Ignore functions with unsatisfied constraints. */
if (!constraints_satisfied_p (field))
continue;
if (special_function_p (field) == sfk_comparison
&& undeduced_auto_decl (field)
&& DECL_DEFAULTED_FN (field)
&& DECL_INITIAL (field) == NULL_TREE)
if (DECL_MAYBE_DELETED (field))
{
++function_depth;
maybe_synthesize_method (field);