[all-commits] [llvm/llvm-project] 62a16d: [C++2x][Modules] Amend module purview constant lin...
Iain Sandoe via All-commits
all-commits at lists.llvm.org
Sun Mar 19 09:26:35 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 62a16d5e2069542351c164aa0e3b216dc8e153c4
https://github.com/llvm/llvm-project/commit/62a16d5e2069542351c164aa0e3b216dc8e153c4
Author: Iain Sandoe <iain at sandoe.co.uk>
Date: 2023-03-19 (Sun, 19 Mar 2023)
Changed paths:
M clang/lib/AST/Decl.cpp
M clang/test/CXX/module/basic/basic.def.odr/p4.cppm
M clang/test/CXX/module/basic/basic.link/p3.cppm
Log Message:
-----------
[C++2x][Modules] Amend module purview constant linkage [P2788R0].
This paper has been applied to the working draft and is believed to be
a DR against C++20, so that the patch here makes the change unconditionally.
for:
```
export module A;
const int mod_cst = 10;
```
Before the change, mod_cst would have internal linkage; after the change it
has module linkage.
Differential Revision: https://reviews.llvm.org/D145886
More information about the All-commits
mailing list