public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/109525] New: typo in views::as_const::operator()
@ 2023-04-15 15:41 hewillk at gmail dot com
  2023-04-15 15:41 ` [Bug libstdc++/109525] " hewillk at gmail dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: hewillk at gmail dot com @ 2023-04-15 15:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109525
           Summary: typo in views::as_const::operator()
           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: ---

ranges#L9027:

        else if constexpr (is_lvalue_reference_v<_Range>
                           && constant_range<_Tp>
                           && !view<_Tp>)
          return ref_view(static_cast<const _Tp&>(__r));


According to [range.as.const.overview-2.5], the second condition should be
constant_range<const _Tp>, I think?

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

end of thread, other threads:[~2023-04-18 12:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-15 15:41 [Bug libstdc++/109525] New: typo in views::as_const::operator() hewillk at gmail dot com
2023-04-15 15:41 ` [Bug libstdc++/109525] " hewillk at gmail dot com
2023-04-16 17:16 ` ppalka at gcc dot gnu.org
2023-04-18 11:23 ` cvs-commit at gcc dot gnu.org
2023-04-18 11:28 ` cvs-commit at gcc dot gnu.org
2023-04-18 12:03 ` ppalka 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).