diff --git a/gcc/cp/reflect.cc b/gcc/cp/reflect.cc index 45483f4e865..10314b9d6da 100644 --- a/gcc/cp/reflect.cc +++ b/gcc/cp/reflect.cc @@ -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; }