[cxx-abi-dev] mangling for fold-expressions

David Vandevoorde daveed at edg.com
Mon Nov 10 19:21:30 UTC 2014


> On Nov 10, 2014, at 2:19 PM, John McCall <rjmccall at apple.com> wrote:
> 
> On Nov 10, 2014, at 11:17 AM, Richard Smith <richardsmith at google.com <mailto:richardsmith at google.com>> wrote:
>> On 10 November 2014 11:13, John McCall <rjmccall at apple.com <mailto:rjmccall at apple.com>> wrote:
>> On Nov 10, 2014, at 10:56 AM, Richard Smith <richardsmith at google.com <mailto:richardsmith at google.com>> wrote:

[…]
> 
>>> > These need a mangling; I suggest (and have implemented):
>>> >
>>> > <expression> ::=
>>> >   fl <binary operator-name> <expression>   # ( ... op pack )
>>> >   fr <binary operator-name> <expression>   # ( pack op ... )
>>> >   fx <binary operator-name> <expression> <expression>   # ( expr op ... op expr )
>>> 
>>> This doesn’t seem to correspond to one of your examples.
>>> 
>>> You get this for the third and fourth cases.
>> 
>> Okay, and you’re saying that left/right folding are disambiguated because one of the expressions contains a pack and the other doesn’t?  I think I would prefer this to be explicit in the mangling.

Agreed.

>> OK. Then fl / fr / fL / fR?
> 
> Sounds good to me.


To me too.

	Daveed


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


More information about the cxx-abi-dev mailing list