From eccf579251a9575ad343e1dc2ae56d6389cd430c Mon Sep 17 00:00:00 2001 From: Dongkyun Son Date: Thu, 22 Jun 2023 13:04:26 +0900 Subject: [PATCH] Revert "c++: constexpr init of union sub-aggr w/ base [PR105491]" This reverts commit 1a48349bfc9fddb292233ca126d2e251d51c428a. --- gcc/cp/decl.cc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/gcc/cp/decl.cc b/gcc/cp/decl.cc index fae70ab..772c059 100644 --- a/gcc/cp/decl.cc +++ b/gcc/cp/decl.cc @@ -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. */ -- 2.7.4