[PATCH] D140261: [C++20][Modules] Do not allow non-inline external definitions in header units.
Iain Sandoe via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 17 08:54:29 PST 2022
iains created this revision.
Herald added a project: All.
iains added a reviewer: ChuanqiXu.
iains added a subscriber: clang-modules.
iains published this revision for review.
iains added a comment.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
this came up during discussion of other header unit constraints, we had not implemented it yet.
found a test case where we'd accidentally broken this rule too.
[module.import/6] last sentence:
A header unit shall not contain a definition of a non-inline function or
variable whose name has external linkage.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140261
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDecl.cpp
clang/test/CXX/module/module.import/p6.cpp
clang/test/CodeGenCXX/module-initializer-header.cppm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140261.483753.patch
Type: text/x-patch
Size: 4081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221217/a4658325/attachment.bin>
More information about the cfe-commits
mailing list