public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libstdc++/103982] New: std::ranges::subrange does not work for clang @ 2022-01-11 20:38 unlvsur at live dot com 2022-01-11 20:38 ` [Bug libstdc++/103982] " unlvsur at live dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: unlvsur at live dot com @ 2022-01-11 20:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103982 Bug ID: 103982 Summary: std::ranges::subrange does not work for clang Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: unlvsur at live dot com Target Milestone: --- #include<utility> #include<ranges> int main() { for(std::pair<int*,int*> it_pair{}; auto e : std::ranges::subrange(it_pair.first,it_pair.second)) { } } GCC accepts this code. However clang does not. constraints not satisfied for alias template 'sentinel_t' [with _Range = const std::ranges::subrange<int *, int *, std::ranges::subrange_kind::sized>] && sized_sentinel_for<sentinel_t<const _Derived>, ^~~~~~~~~~~~~~~~~~~~~~~~~~ ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/103982] std::ranges::subrange does not work for clang 2022-01-11 20:38 [Bug libstdc++/103982] New: std::ranges::subrange does not work for clang unlvsur at live dot com @ 2022-01-11 20:38 ` unlvsur at live dot com 2022-01-11 21:14 ` pinskia at gcc dot gnu.org 2022-01-11 21:18 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: unlvsur at live dot com @ 2022-01-11 20:38 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103982 --- Comment #1 from cqwrteur <unlvsur at live dot com> --- clang++ -v clang version 14.0.0 (https://github.com/llvm/llvm-project.git af931a51b98f318955fc0bec71f28929e6535619) Target: x86_64-unknown-linux-gnu ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/103982] std::ranges::subrange does not work for clang 2022-01-11 20:38 [Bug libstdc++/103982] New: std::ranges::subrange does not work for clang unlvsur at live dot com 2022-01-11 20:38 ` [Bug libstdc++/103982] " unlvsur at live dot com @ 2022-01-11 21:14 ` pinskia at gcc dot gnu.org 2022-01-11 21:18 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-01-11 21:14 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103982 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: #include<ranges> void f(int *a, int *b) { auto t = std::ranges::subrange(a,b); } ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libstdc++/103982] std::ranges::subrange does not work for clang 2022-01-11 20:38 [Bug libstdc++/103982] New: std::ranges::subrange does not work for clang unlvsur at live dot com 2022-01-11 20:38 ` [Bug libstdc++/103982] " unlvsur at live dot com 2022-01-11 21:14 ` pinskia at gcc dot gnu.org @ 2022-01-11 21:18 ` redi at gcc dot gnu.org 2 siblings, 0 replies; 4+ messages in thread From: redi at gcc dot gnu.org @ 2022-01-11 21:18 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103982 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED See Also| |https://github.com/llvm/llv | |m-project/issues/44178 --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Dup of PR 102807, which is due to a clang bug: https://github.com/llvm/llvm-project/issues/44178 *** This bug has been marked as a duplicate of bug 102807 *** ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-01-11 21:18 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-01-11 20:38 [Bug libstdc++/103982] New: std::ranges::subrange does not work for clang unlvsur at live dot com 2022-01-11 20:38 ` [Bug libstdc++/103982] " unlvsur at live dot com 2022-01-11 21:14 ` pinskia at gcc dot gnu.org 2022-01-11 21:18 ` 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).