[PATCH] D122119: [C++20][Modules] Adjust handling of exports of namespaces and using-decls.

Nathan Sidwell via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 22 10:35:07 PDT 2022


urnathan added a comment.

In D122119#3398823 <https://reviews.llvm.org/D122119#3398823>, @iains wrote:

> 



> With the change here we now get:
> cannot export redeclaration 'f' here since the previous declaration has internal linkage
> cannot export redeclaration 'S' here since the previous declaration has module linkage
>
> which seems maybe to be more helpful to the user in telling them why.
>
> I hope others can weigh in with an opinion here  .. @dblaikie @vsapsai  ?

Yes, this is more helpful -- tell the user what the compiler thinks it is, rather than what it thinks it is not.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122119/new/

https://reviews.llvm.org/D122119



More information about the cfe-commits mailing list