As part of P1766R1, allow unnamed decls in export{} blocks.
I've adjusted the module-ts tests as well, but I am (generally) not sure whether code for C++20 modules should affect the modules-ts cases. What's the policy here?
Paths
| Differential D117295
[clang][sema] Allow unnamed decls in C++20 module export{} blocks AbandonedPublic Authored by tbaeder on Jan 14 2022, 2:26 AM.
Details
Summary As part of P1766R1, allow unnamed decls in export{} blocks. I've adjusted the module-ts tests as well, but I am (generally) not sure whether code for C++20 modules should affect the modules-ts cases. What's the policy here?
Diff Detail Event TimelineComment Actions Reading this again, it sounds like this is not expected to happen for C++20; I was using https://clang.llvm.org/cxx_status.html#cxx20 as guidance here. tbaeder added inline comments.
tbaeder marked an inline comment as done. tbaeder marked 2 inline comments as done. tbaeder added inline comments.
Comment Actions Oh, it looks like we couldn't go on since the part of PR1766R1 is not adopted: https://github.com/cplusplus/draft/issues/5237
Revision Contents
Diff 399938 clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaModule.cpp
clang/test/CXX/module/module.interface/p3.cpp
clang/test/Modules/cxx20-export.cpp
clang/test/SemaCXX/modules-ts.cppm
|
Should we add a cite to P1766R1 here?