public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/106610] New: elements_view::iterator::iterator_category invokes the operator*() && of the underlying iterator
@ 2022-08-13 17:34 hewillk at gmail dot com
  0 siblings, 0 replies; only message in thread
From: hewillk at gmail dot com @ 2022-08-13 17:34 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106610

            Bug ID: 106610
           Summary: elements_view::iterator::iterator_category invokes the
                    operator*() && of the underlying iterator
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

#include <ranges>

struct I {
  using difference_type = std::ptrdiff_t;
  using value_type = std::pair<int, double>;
  value_type& operator*() const &;
  void operator*() && = delete;
  I& operator++();
  I operator++(int);
  bool operator==(const I&) const;
};

int main() {
  std::ranges::input_range auto r = std::ranges::subrange(I{},
std::unreachable_sentinel);
  auto e = r | std::views::keys;
}

https://godbolt.org/z/oW8dP56zv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-13 17:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-13 17:34 [Bug libstdc++/106610] New: elements_view::iterator::iterator_category invokes the operator*() && of the underlying iterator hewillk at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).