[libcxx-commits] [libcxx] [libcxxabi] [llvm] [libc++] Upgrade to GCC 16 (PR #206235)

Volodymyr Sapsai via libcxx-commits libcxx-commits at lists.llvm.org
Thu Sep 17 22:48:26 PDT 2026


================
@@ -289,9 +289,8 @@ class concat_view<_Views...>::__iterator : public __concat_view_iterator_categor
 
   template <typename _Func>
   _LIBCPP_HIDE_FROM_ABI constexpr auto __invoke_at_index(_Func&& __func) const {
-    // TODO(GCC 16): Just capture `this` when GCC PR113563 and PR121008 are fixed.
-    return [&__func, &__view_iter = *this]<std::size_t _Is>(this auto&& __self) {
-      if (_Is == __view_iter.__it_.index()) {
+    return [&__func, this]<std::size_t _Is>(this auto&& __self) {
+      if (_Is == __it_.index()) {
----------------
vsapsai wrote:

Wanted to let you know this change crashes GCC 16.0.1 (and GCC 15.2 but it's not supported).

https://github.com/llvm/llvm-project/pull/206235


More information about the libcxx-commits mailing list