Skip to content

Commit

Permalink
[libc++] Rename local variable to avoid shadowing error (#77672)
Browse files Browse the repository at this point in the history
Due to the inclusion of a header, a global type is was being shadowed,
which upset GCC.
  • Loading branch information
cjdb committed Jan 10, 2024
1 parent 8ca07e5 commit 98e3d98
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -71,10 +71,10 @@ constexpr bool test() {
BufferView<forward_iterator<const Inner*>, sentinel_wrapper<forward_iterator<const Inner*>>,
bidirectional_iterator<Inner*>, sentinel_wrapper<bidirectional_iterator<Inner*>>>;
using JoinView = std::ranges::join_view<ConstInconvertibleOuter>;
using sentinel = std::ranges::sentinel_t<JoinView>;
using const_sentinel = std::ranges::sentinel_t<const JoinView>;
static_assert(!std::constructible_from<sentinel, const_sentinel>);
static_assert(!std::constructible_from<const_sentinel, sentinel>);
using sentinel_t = std::ranges::sentinel_t<JoinView>;
using const_sentinel_t = std::ranges::sentinel_t<const JoinView>;
static_assert(!std::constructible_from<sentinel_t, const_sentinel_t>);
static_assert(!std::constructible_from<const_sentinel_t, sentinel_t>);
}
return true;
}
Expand Down

0 comments on commit 98e3d98

Please sign in to comment.