[libcxx-commits] [libcxx] Fix error: '__outer_iterator' redeclared with 'public' access (PR #161859)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Oct 3 08:08:07 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxx
Author: Yuriy Chernyshov (georgthegreat)
<details>
<summary>Changes</summary>
Fixes the following compilation error:
```
$(SOURCE_ROOT)/contrib/libs/cxxsupp/libcxx/include/__ranges/lazy_split_view.h:143:10: error: '__outer_iterator' redeclared with 'public' access
143 | struct __outer_iterator : __outer_iterator_category<__maybe_const<_Const, _View>> {
| ^
$(SOURCE_ROOT)/contrib/libs/cxxsupp/libcxx/include/__ranges/lazy_split_view.h:79:10: note: previously declared 'private' here
79 | struct __outer_iterator;
```
---
Full diff: https://github.com/llvm/llvm-project/pull/161859.diff
1 Files Affected:
- (modified) libcxx/include/__ranges/lazy_split_view.h (+1)
``````````diff
diff --git a/libcxx/include/__ranges/lazy_split_view.h b/libcxx/include/__ranges/lazy_split_view.h
index cca9191d26818..7471579653d20 100644
--- a/libcxx/include/__ranges/lazy_split_view.h
+++ b/libcxx/include/__ranges/lazy_split_view.h
@@ -76,6 +76,7 @@ class lazy_split_view : public view_interface<lazy_split_view<_View, _Pattern>>
_If<!forward_range<_View>, __non_propagating_cache<iterator_t<_View>>, __empty_cache>;
_LIBCPP_NO_UNIQUE_ADDRESS _MaybeCurrent __current_ = _MaybeCurrent();
+private:
template <bool>
struct __outer_iterator;
template <bool>
``````````
</details>
https://github.com/llvm/llvm-project/pull/161859
More information about the libcxx-commits
mailing list