-
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
An example code from the standard (templates and concepts) does not compile #50208
Comments
I'm almost positive this is a duplicate of #44178 #c4. The problem here is that we're greedily evaluating concepts immediately upon instantiation of the class, rather than waiting until they are called. |
Agreed. I was about to say that Bug 47509 (which links here) is a dup of that one. |
Still doesn't work after https://reviews.llvm.org/D126907 but I think it's a different bug now.
|
@llvm/issue-subscribers-clang-frontend |
I think we need to instantiate the specialized struct and then do a lookup or something like that, I'm not sure how this is only a problem for constrained methods so I probably missed something. |
The left over bug is same as #49620. |
Extended Description
According to
[temp.constr.decl]/4
the following example should compile:However, clang gives an error:
I believe this is the reason why clang cannot compile
libstdc++
ranges: #46091The text was updated successfully, but these errors were encountered: