[cxx-abi-dev] C++17 mangling for result of lambda conversion function

Hubert Tong hstong at ca.ibm.com
Wed Oct 5 18:54:28 UTC 2016


In N4604 subclause 5.1.5 [expr.prim.lambda] paragraph 7, the conversion
function to a pointer-to-function is constexpr.
This means that the resulting pointer-to-function may be used as a template
non-type argument and thus need a mangling.

Clang currently mangles as a member of the closure type named __invoke, and
GCC seems to use _FUN in place of __invoke.
I find the Clang name to be less jarring.

-- HT

=====
Hubert S. K. Tong
IBM Canada Ltd., C2/YGH/8200/MKM
8200 Warden Avenue, Markham, Ontario  L6G 1C7, Canada
===

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20161005/c9735502/attachment.html>


More information about the cxx-abi-dev mailing list