Skip to content

Commit

Permalink
[libc++] Rename local variable to avoid shadowing error (llvm#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 authored and justinfargnoli committed Jan 28, 2024
1 parent e76357e commit 8fdb30b
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 8fdb30b

Please sign in to comment.