On 5/15/26 5:22 PM, Marek Polacek wrote:
Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?

OK.

-- >8 --
We've had this comment to remove the code since r13-963, so it seems
it's been long enough now to go ahead and remove it.

gcc/cp/ChangeLog:

        * constexpr.cc (cxx_eval_bare_aggregate): Remove dead code.
---
  gcc/cp/constexpr.cc | 9 ---------
  1 file changed, 9 deletions(-)

diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc
index 1fc8a56503c..701269cd3f6 100644
--- a/gcc/cp/constexpr.cc
+++ b/gcc/cp/constexpr.cc
@@ -6883,15 +6883,6 @@ cxx_eval_bare_aggregate (const constexpr_ctx *ctx, tree 
t,
        /* This is an initializer for an empty field; now that we've
           checked that it's constant, we can ignore it.  */
        changed = true;
-      else if (index
-              && (TREE_CODE (index) == NOP_EXPR
-                  || TREE_CODE (index) == POINTER_PLUS_EXPR))
-       {
-         /* Old representation of empty bases.  FIXME remove.  */
-         gcc_checking_assert (false);
-         gcc_assert (is_empty_class (TREE_TYPE (TREE_TYPE (index))));
-         changed = true;
-       }
        else
        {
          if (TREE_CODE (type) == UNION_TYPE

base-commit: f108e23d2bff50d0ee8cf0d25a08be5432b702b6

Reply via email to