-
Notifications
You must be signed in to change notification settings - Fork 12.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] error: '_freea' has different definitions in different modules #79386
Comments
@llvm/issue-subscribers-clang-modules Author: Ivan171 (Ivan171)
### Environment
Windows 10
Clang 18.0.0git (https://github.com/llvm/llvm-project f9da4c6)
MSVC 17.8.3
Reproducer// mod2.cpp
module;
#include <algorithm>
export module mod2; // mod1.cpp
module;
#include <string_view>
export module mod1;
import mod2;
|
Maybe the reproducer can be fixed if we make #79240 |
That fixed it. I'm converting my project to modules, one file at time. I have maybe 10% or 15% converted, and today was the first time I got it to build without any errors. I'll keep converting it and if any error shows up, I'll try to reduce it and report it. Thanks! |
Thanks for reporting it too. BTW, if you're making a toy and want to get a feeling about modules, it is suggested to use std modules from https://libcxx.llvm.org/Modules.html. Or if you still want to use libstdc++, it is suggested to mock a std module for that by yourself. |
Environment
Windows 10
Clang 18.0.0git (https://github.com/llvm/llvm-project f9da4c6)
MSVC 17.8.3
Reproducer
The text was updated successfully, but these errors were encountered: