public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable @ 2023-03-04 16:03 yronglin777 at gmail dot com 2023-03-06 1:05 ` [Bug libstdc++/109024] " de34 at live dot cn ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: yronglin777 at gmail dot com @ 2023-03-04 16:03 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 Bug ID: 109024 Summary: [C++23][ranges][repeat_view] The default ctor unuseable Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: yronglin777 at gmail dot com Target Milestone: --- The default ctor of std::ranges::repeat_view<int> was unuseable. https://godbolt.org/z/jxKMxEn7E [P2474R2] https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2474r2.html ``` repeat_view() requires default_initializable<W> = default; ``` ``` #include <ranges> #include <cassert> void fn() { std::ranges::repeat_view<int> v; } ``` ``` In file included from <source>:1: /opt/compiler-explorer/gcc-trunk-20230304/include/c++/13.0.1/ranges: In instantiation of 'constexpr std::ranges::repeat_view<_Tp, _Bound>::repeat_view() requires default_initializable<_Tp> [with _Tp = int; _Bound = std::unreachable_sentinel_t]': <source>:5:35: required from here /opt/compiler-explorer/gcc-trunk-20230304/include/c++/13.0.1/ranges:7395:37: error: could not convert '0' from 'int' to 'std::ranges::__detail::__box<int>' 7395 | __detail::__box<_Tp> _M_value = _Tp(); | ^~~~~ | | | int Compiler returned: 1 ``` ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/109024] [C++23][ranges][repeat_view] The default ctor unuseable 2023-03-04 16:03 [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable yronglin777 at gmail dot com @ 2023-03-06 1:05 ` de34 at live dot cn 2023-03-06 16:42 ` redi at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: de34 at live dot cn @ 2023-03-06 1:05 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 Jiang An <de34 at live dot cn> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |de34 at live dot cn --- Comment #1 from Jiang An <de34 at live dot cn> --- See https://cplusplus.github.io/LWG/issue3796. We need to implement the resolution. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/109024] [C++23][ranges][repeat_view] The default ctor unuseable 2023-03-04 16:03 [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable yronglin777 at gmail dot com 2023-03-06 1:05 ` [Bug libstdc++/109024] " de34 at live dot cn @ 2023-03-06 16:42 ` redi at gcc dot gnu.org 2023-03-08 15:55 ` ppalka at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: redi at gcc dot gnu.org @ 2023-03-06 16:42 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2023-03-06 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/109024] [C++23][ranges][repeat_view] The default ctor unuseable 2023-03-04 16:03 [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable yronglin777 at gmail dot com 2023-03-06 1:05 ` [Bug libstdc++/109024] " de34 at live dot cn 2023-03-06 16:42 ` redi at gcc dot gnu.org @ 2023-03-08 15:55 ` ppalka at gcc dot gnu.org 2023-03-09 18:37 ` cvs-commit at gcc dot gnu.org 2023-03-09 18:38 ` ppalka at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: ppalka at gcc dot gnu.org @ 2023-03-08 15:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |ppalka at gcc dot gnu.org CC| |ppalka at gcc dot gnu.org Status|NEW |ASSIGNED ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/109024] [C++23][ranges][repeat_view] The default ctor unuseable 2023-03-04 16:03 [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable yronglin777 at gmail dot com ` (2 preceding siblings ...) 2023-03-08 15:55 ` ppalka at gcc dot gnu.org @ 2023-03-09 18:37 ` cvs-commit at gcc dot gnu.org 2023-03-09 18:38 ` ppalka at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2023-03-09 18:37 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 --- Comment #2 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:065c93b89c5e97dcbfd79ee5172cf6800c286896 commit r13-6561-g065c93b89c5e97dcbfd79ee5172cf6800c286896 Author: Patrick Palka <ppalka@redhat.com> Date: Thu Mar 9 13:37:29 2023 -0500 libstdc++: Implement LWG 3796 changes to repeat_/chunk_by_view [PR109024] PR libstdc++/109024 libstdc++-v3/ChangeLog: * include/std/ranges (chunk_by_view::_M_pred): Remove DMI as per LWG 3796. (repeat_view::_M_pred): Likewise. * testsuite/std/ranges/adaptors/chunk_by/1.cc (test03): New test. * testsuite/std/ranges/repeat/1.cc (test05): New test. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libstdc++/109024] [C++23][ranges][repeat_view] The default ctor unuseable 2023-03-04 16:03 [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable yronglin777 at gmail dot com ` (3 preceding siblings ...) 2023-03-09 18:37 ` cvs-commit at gcc dot gnu.org @ 2023-03-09 18:38 ` ppalka at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: ppalka at gcc dot gnu.org @ 2023-03-09 18:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109024 Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Target Milestone|--- |13.0 Resolution|--- |FIXED --- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> --- Fixed, thanks for the bug report. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-03-09 18:38 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-03-04 16:03 [Bug libstdc++/109024] New: [C++23][ranges][repeat_view] The default ctor unuseable yronglin777 at gmail dot com 2023-03-06 1:05 ` [Bug libstdc++/109024] " de34 at live dot cn 2023-03-06 16:42 ` redi at gcc dot gnu.org 2023-03-08 15:55 ` ppalka at gcc dot gnu.org 2023-03-09 18:37 ` cvs-commit at gcc dot gnu.org 2023-03-09 18:38 ` 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).