[cxx-abi-dev] Mangling C++0x Lambdas

Jason Merrill jason at redhat.com
Tue Oct 27 23:04:22 UTC 2009


The obvious change to make the op() of a [] lambda a static member 
function changes the mangling, since the function is no longer "const". 
  And, of course, it changes the calling convention, since there's no 
'this' argument anymore, so I don't think it's worthwhile to add a fake 
"const" to the mangling.

It would be possible to leave it as a non-static member function and 
have the conversion op return a helper function, but it seems early to 
be locking down the lambda ABI.  We should also discuss closure layout, 
particularly of capture by reference.

Jason




More information about the cxx-abi-dev mailing list