Merge VAR_DECL and FUNCTION_DECL cases in members_of_representable_p.

This commit is contained in:
Jakub Jelinek
2026-01-07 13:31:14 +01:00
committed by Marek Polacek
parent 1cc58bbd7f
commit b01d0d7189

View File

@@ -6472,14 +6472,8 @@ members_of_representable_p (tree c, tree r)
|| TREE_CODE (r) == FIELD_DECL
|| TREE_CODE (r) == NAMESPACE_DECL)
return true;
if (VAR_P (r) && !undeduced_auto_decl (r))
if (VAR_OR_FUNCTION_DECL_P (r) && !undeduced_auto_decl (r))
return true;
if (TREE_CODE (r) == FUNCTION_DECL)
{
if (undeduced_auto_decl (r))
return false;
return true;
}
}
return false;
}