-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[libc++/clang] std::ranges::views::take does not work with | operator #55673
Comments
@llvm/issue-subscribers-c-20 |
Well, the godbolt link uses libstdc++, so it's certainly not a libc++ bug. I believe that libstdc++'s |
That would make sense.
…On 25/05/2022 2:04 am, S. B. Tam wrote:
Well, the godbolt link uses libstdc++, so it's certainly not a libc++ bug.
I believe that libstdc++'s |<range>| does not work with clang at all,
because clang's support for concepts is incomplete.
—
Reply to this email directly, view it on GitHub
<#55673 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABE4FIXH5TUY7HWJT54W5QDVLTOXHANCNFSM5WZAWGKQ>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Is this a duplicate of the 'deferred concepts' feature? A lot of the ranges::views stuff ends up having that problem. Patch is in progress/1 bug left (AFAIK) here: https://reviews.llvm.org/D126907#3574083 I note that the preprocessed version of this ends up crashing in my patch in std::vector, but it is hopefully the same issue that I'm already looking into. |
Works after https://reviews.llvm.org/D126907, so this was a duplicate of #44178 indeed. |
@llvm/issue-subscribers-clang-frontend |
The following code in C++20:
Produces the following error in Clang 14.00:
Godbolt: https://godbolt.org/z/c35r4Pa1h
The code as far as I can tell, is valid and works in GCC11 and MSVC 2022.
Unsure whether this is a libc++ or clang bug.
The text was updated successfully, but these errors were encountered: