You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some semantics of C++20 modules are implemented in ASTReader/ASTWriter. It results that the behavior would be different if the user compile *.cppm directly or compile *.cppm to *.pcm file first and then compile *.pcm file to .ll/.bc file. It would be surprising.
I think there are 2 solutions:
Ban the compilation of .cppm files to .o/.ll/.bc directly. The drawback would be now the behavior depend on the file suffix. But in fact, I remember vaguely that the current behavior has depended on file suffix already.
Implement the semantics again on other places. We might need to handle it in AST/Sema/CodeGen. I believe it would be a relative big change.