public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/114477] New: The user-defined constructor of filter_view::iterator is not fully compliant with the standard
@ 2024-03-26  5:12 hewillk at gmail dot com
  2024-03-26  7:27 ` [Bug libstdc++/114477] " de34 at live dot cn
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: hewillk at gmail dot com @ 2024-03-26  5:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114477
           Summary: The user-defined constructor of filter_view::iterator
                    is not fully compliant with the standard
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

Since P3059R0 is closed (although I feel bad about this), this suggests that
libstdc++ may need to modify the user-defined constructor of
filter_view::iterator:

  #include <ranges>
  auto base = std::views::iota(0);
  auto filter = base | std::views::filter([](int) { return true; });
  auto begin = decltype(filter.begin())(filter, base.begin()); // should ok

https://godbolt.org/z/T7nY68rej

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-03-27  9:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-26  5:12 [Bug libstdc++/114477] New: The user-defined constructor of filter_view::iterator is not fully compliant with the standard hewillk at gmail dot com
2024-03-26  7:27 ` [Bug libstdc++/114477] " de34 at live dot cn
2024-03-26  8:22 ` redi at gcc dot gnu.org
2024-03-26 13:23 ` ppalka at gcc dot gnu.org
2024-03-26 14:33 ` redi at gcc dot gnu.org
2024-03-27  8:09 ` de34 at live dot cn
2024-03-27  8:16 ` hewillk at gmail dot com
2024-03-27  9:43 ` redi at gcc dot gnu.org

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).