Skip to content

Commit 98e3d98

Browse files
authored
[libc++] Rename local variable to avoid shadowing error (#77672)
Due to the inclusion of a header, a global type is was being shadowed, which upset GCC.
1 parent 8ca07e5 commit 98e3d98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcxx/test/std/ranges/range.adaptors/range.join/range.join.sentinel/ctor.other.pass.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ constexpr bool test() {
7171
BufferView<forward_iterator<const Inner*>, sentinel_wrapper<forward_iterator<const Inner*>>,
7272
bidirectional_iterator<Inner*>, sentinel_wrapper<bidirectional_iterator<Inner*>>>;
7373
using JoinView = std::ranges::join_view<ConstInconvertibleOuter>;
74-
using sentinel = std::ranges::sentinel_t<JoinView>;
75-
using const_sentinel = std::ranges::sentinel_t<const JoinView>;
76-
static_assert(!std::constructible_from<sentinel, const_sentinel>);
77-
static_assert(!std::constructible_from<const_sentinel, sentinel>);
74+
using sentinel_t = std::ranges::sentinel_t<JoinView>;
75+
using const_sentinel_t = std::ranges::sentinel_t<const JoinView>;
76+
static_assert(!std::constructible_from<sentinel_t, const_sentinel_t>);
77+
static_assert(!std::constructible_from<const_sentinel_t, sentinel_t>);
7878
}
7979
return true;
8080
}

0 commit comments

Comments
 (0)