[libcxx-commits] [libcxx] [libc++] Remove diagnostic about _LIBCPP_ABI_NO_ITERATOR_BASES (PR #208460)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jul 9 06:24:38 PDT 2026


https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/208460

This was slated for removal in LLVM 22 but we hadn't removed it yet.

>From 31af165d75c8d7fcb0f17c43bf4a98f490693eb7 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Thu, 9 Jul 2026 09:23:45 -0400
Subject: [PATCH] [libc++] Remove diagnostic about
 _LIBCPP_ABI_NO_ITERATOR_BASES

This was slated for removal in LLVM 22 but we hadn't removed it yet.
---
 libcxx/include/__configuration/abi.h | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/libcxx/include/__configuration/abi.h b/libcxx/include/__configuration/abi.h
index 8a34ebcc7bb90..85a524b1af334 100644
--- a/libcxx/include/__configuration/abi.h
+++ b/libcxx/include/__configuration/abi.h
@@ -88,15 +88,6 @@
 #  endif
 #endif
 
-// TODO(LLVM 22): Remove this check
-#if defined(_LIBCPP_ABI_NO_ITERATOR_BASES) && !defined(_LIBCPP_ABI_NO_REVERSE_ITERATOR_SECOND_MEMBER)
-#  ifndef _LIBCPP_ONLY_NO_ITERATOR_BASES
-#    error "You probably want to define _LIBCPP_ABI_NO_REVERSE_ITERATOR_SECOND_MEMBER. This has been split out from"   \
- " _LIBCPP_ABI_NO_ITERATOR_BASES to allow only removing the second iterator member, since they aren't really related." \
- "If you actually want this ABI configuration, please define _LIBCPP_ONLY_NO_ITERATOR_BASES instead."
-#  endif
-#endif
-
 // We had some bugs where we use [[no_unique_address]] together with construct_at,
 // which causes UB as the call on construct_at could write to overlapping subobjects
 //



More information about the libcxx-commits mailing list