Revert "c++: constexpr init of union sub-aggr w/ base [PR105491]"
authorDongkyun Son <dongkyun.s@samsung.com>
Thu, 22 Jun 2023 04:04:26 +0000 (13:04 +0900)
committerDongkyun Son <dongkyun.s@samsung.com>
Thu, 22 Jun 2023 04:04:26 +0000 (13:04 +0900)
This reverts commit 1a48349bfc9fddb292233ca126d2e251d51c428a.

gcc/cp/decl.cc

index fae70ab..772c059 100644 (file)
@@ -6584,25 +6584,6 @@ next_subobject_field (tree field)
   return field;
 }
 
-/* FIELD is an element of TYPE_FIELDS or NULL.  In the former case, the value
-   returned is the next FIELD_DECL (possibly FIELD itself) that corresponds
-   to a subobject.  If there are no more such fields, the return value will be
-   NULL.  */
-
-tree
-next_subobject_field (tree field)
-{
-  while (field
-        && (TREE_CODE (field) != FIELD_DECL
-            || DECL_UNNAMED_BIT_FIELD (field)
-            || (DECL_ARTIFICIAL (field)
-                && !DECL_FIELD_IS_BASE (field)
-                && !DECL_VIRTUAL_P (field))))
-     field = DECL_CHAIN (field);
-
-  return field;
-}
-
 /* Return true for [dcl.init.list] direct-list-initialization from
    single element of enumeration with a fixed underlying type.  */