[PATCH] D118018: [RFC] [C+++20] [Modules] Mangling lambda in modules
Chuanqi Xu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 24 04:20:18 PST 2022
ChuanqiXu added a comment.
In D118018#3265810 <https://reviews.llvm.org/D118018#3265810>, @urnathan wrote:
> I don't think this is wanted. there are two cases:
> a) lambda is attached to some ODR-visible entitity. Something like (in module-purview at namespace-scope) '[maybe-export] auto var = []{};'. Here the lambda acquires 'var' as its context.
> b) lambda is not attached like that. p1815 makes it ill-formed for the lambda to be exposed externally in that case.
>
> see https://github.com/itanium-cxx-abi/cxx-abi/issues/84
>
> FWIW I'm redoing the module mangling scheme, the current one is undemangleable
Oh, great to hear you are willing to take this. I know you must know much more about mangling than me. If you are going to refactor the mangling system, this one would be meaning less. I would abandon it later.
BTW, do you mind to be assigned for issue https://github.com/llvm/llvm-project/issues/52857 and https://github.com/llvm/llvm-project/issues/53232?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118018/new/
https://reviews.llvm.org/D118018
More information about the cfe-commits
mailing list