public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/107313] New: typo in stride_view::_Iterator::operator-
@ 2022-10-19 3:13 hewillk at gmail dot com
2022-10-19 13:59 ` [Bug libstdc++/107313] " ppalka at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hewillk at gmail dot com @ 2022-10-19 3:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107313
Bug ID: 107313
Summary: typo in stride_view::_Iterator::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: ---
std/ranges#L7877:
friend constexpr difference_type
operator-(default_sentinel_t __y, const _Iterator& __x)
requires sized_sentinel_for<sentinel_t<_Base>, iterator_t<_Base>>
{ return __detail::__div_ceil(__x._M_end, __x._M_current, __x._M_stride); }
The ',' should be '-'.
testcase:
#include <iostream>
#include <ranges>
int main() {
auto i = std::views::istream<int>(std::cin);
auto r = std::views::counted(i.begin(), 4)
| std::views::stride(2);
auto d = r.begin() - r.end();
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/107313] typo in stride_view::_Iterator::operator-
2022-10-19 3:13 [Bug libstdc++/107313] New: typo in stride_view::_Iterator::operator- hewillk at gmail dot com
@ 2022-10-19 13:59 ` ppalka at gcc dot gnu.org
2022-10-19 17:04 ` cvs-commit at gcc dot gnu.org
2022-10-19 17:20 ` ppalka at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-10-19 13:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107313
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |13.0
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2022-10-19
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/107313] typo in stride_view::_Iterator::operator-
2022-10-19 3:13 [Bug libstdc++/107313] New: typo in stride_view::_Iterator::operator- hewillk at gmail dot com
2022-10-19 13:59 ` [Bug libstdc++/107313] " ppalka at gcc dot gnu.org
@ 2022-10-19 17:04 ` cvs-commit at gcc dot gnu.org
2022-10-19 17:20 ` ppalka at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-19 17:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107313
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppalka@gcc.gnu.org>:
https://gcc.gnu.org/g:a10d6b5eb999a74fd4b12c00e8fb379cd3460e93
commit r13-3386-ga10d6b5eb999a74fd4b12c00e8fb379cd3460e93
Author: Patrick Palka <ppalka@redhat.com>
Date: Wed Oct 19 13:03:25 2022 -0400
libstdc++: Fix typo in stride_view's operator- [PR107313]
PR libstdc++/107313
libstdc++-v3/ChangeLog:
* include/std/ranges (stride_view::_Iterator::operator-): Fix typo.
* testsuite/std/ranges/adaptors/stride/1.cc (test03): New test.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/107313] typo in stride_view::_Iterator::operator-
2022-10-19 3:13 [Bug libstdc++/107313] New: typo in stride_view::_Iterator::operator- hewillk at gmail dot com
2022-10-19 13:59 ` [Bug libstdc++/107313] " ppalka at gcc dot gnu.org
2022-10-19 17:04 ` cvs-commit at gcc dot gnu.org
@ 2022-10-19 17:20 ` ppalka at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2022-10-19 17:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107313
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Fixed, thanks!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-19 17:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-19 3:13 [Bug libstdc++/107313] New: typo in stride_view::_Iterator::operator- hewillk at gmail dot com
2022-10-19 13:59 ` [Bug libstdc++/107313] " ppalka at gcc dot gnu.org
2022-10-19 17:04 ` cvs-commit at gcc dot gnu.org
2022-10-19 17:20 ` 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).