[PATCH] D128328: [C++20][Modules] Improve handing of Private Module Fragment diagnostics.
Volodymyr Sapsai via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 24 20:38:49 PDT 2022
vsapsai added a comment.
Sorry for changing my mind. I've thought about the errors more and especially about the case mentioned by Chuanqi
export module A;
[export] inline void func();
I'm afraid it can complicate the implementation but we can achieve some consistency with errors like
export module A;
export inline void func(); // error: no definition for exported inline function 'func' in module 'A'
and
export module A;
export inline void func(); // error: no definition for exported inline function 'func' in module 'A'
//...
module :private;
void func() {} // note: definition here is not reachable as it is private
I think it is useful to have connection between declaration and definition and to explain why the definition is no good.
Specific wording around "no definition | missing definition | definition required" is flexible.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128328/new/
https://reviews.llvm.org/D128328
More information about the cfe-commits
mailing list