-
Notifications
You must be signed in to change notification settings - Fork 13.4k
std module before include <iterator>
will have a "requires clause differs in template redeclaration" error
#96147
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
Comments
@llvm/issue-subscribers-clang-modules Author: None (ncihnegn)
clang version 19.0.0git (https://github.com/llvm/llvm-project 5220b7b)
```
import std;
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN TEST_CASE("") {
[1/10] Scanning /usr/local/Sither/Cellar/llvm/5220b7bea/share/libc++/v1/std.compat.cppm for CXX dependencies
|
This may be a different issue than #91111. Since that one is complaining |
I didn't run the reproducer provided by the OP. But construct a similar one:
And the analysis shows, it might be a library issue instead of a compiler issue. The compiler are complaining about the inconsistent definition from the module and the main file.
When I look into the issue, I found the AST in the module file shows the Then I tried to comment out CC: @mordante And if we can't solve the problem quickly, I think it may be helpful to comment out |
<iterator>
will have a "requires clause differs in template redeclaration" error
I can reproduce @ChuanqiXu9's reproducer. It seems only I still prefer to look at a real bug-fix. But having a libc++-19 "hack" doesn't sound too bad; modules are still considered experimental in libc++ and that won't change in LLVM-19. |
I tested and it seems more failures occur. |
Yeah, given that is a separate issue. Let's talk somewhere else. Maybe discord or another issue. From the perspective of software engineering, I feel it will be better to have more test on this. |
Discord is fine. I agree we should have more tests, however there are some concerns of other libc++ developers about adding module tests since they need modifications to existing tests. |
Removing from the 19 milestone since it seems this is slipping to the next release. |
This may be fixed. Can you try again?
Oh, I forgot this. Sorry. I hope we can have more tests. But I remember the reason we didn't do this is due to that we don't want this test bring more testing pressure on libc++ folks. So maybe it is better to add a few tests that won't bring you more trouble if possible. |
clang version 19.0.0git (https://github.com/llvm/llvm-project 5220b7b)
Similar to #91111.
The text was updated successfully, but these errors were encountered: