-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
[C++20][Modules] Includes in module partitions #60202
Comments
@llvm/issue-subscribers-clang-modules |
|
It's my typo, cuz i rewrote this part manually here. In the code there's no typo, clang would've say me that i mistaken keyword. |
Weird, I can't reproduce this locally. I tried the following two commands:
And I am wondering if it is the problem of windows, then I tried:
but things look fine still. |
I suspect this to be the same underlying issue as #58540. |
I'm having a similar issue when trying to include a header from opencv.
The compilation will fail on the scalar addition:
This is reduced as much as I could. I originally ran into the issue when having multiple module partitions both include opencv and one imports the other. In the above example, if you move the opencv include to after import mod it will work but that isn't an option in module partitions.
|
Is the operator static? I suspect this fall into #61807 |
@SasisaDev I am unable to reproduce this on Windows MSVC clang 17 0d3eee3, it compiles for me without errors. Can you provide the preprocessor output and the command line flags you used? |
If i move this implementation to main module, and not it's partition, code compiles.
If i use this code with other simmiliar modules, and they cross at some point, error becomes bigger.
The text was updated successfully, but these errors were encountered: