[cxx-abi-dev] Mangling of reference temporaries

Hubert Tong hstong at ca.ibm.com
Wed May 7 00:02:23 UTC 2014


By reference temporaries, I think we want to say temporaries bound to
references with vague linkage?

-- HT

=====
Hubert S. K. Tong
C++ Front-End and Runtime Development for XL C/C++
IBM Canada Ltd., C2/YGH/8200/MKM, 8200 Warden Avenue, Markham, Ontario  L6G
1C7, Canada
--
Phone:  +1 (905) 413-4207
E-mail:  hstong at ca.ibm.com
===


cxx-abi-dev-bounces at codesourcery.com wrote on 06-05-2014 07:46:34 PM:

> From: David Majnemer <david.majnemer at gmail.com>
> To: John McCall <rjmccall at apple.com>,
> Cc: Richard Smith <richardsmith at google.com>, "cxx-abi-
> dev at codesourcery.com" <cxx-abi-dev at codesourcery.com>
> Date: 06-05-2014 07:46 PM
> Subject: Re: [cxx-abi-dev] Mangling of reference temporaries
> Sent by: cxx-abi-dev-bounces at codesourcery.com
>
> To implement support for mangling reference temporaries:
>
> 1. An additional <special-name> non-terminal production should be added:
>
> <special-name> ::= GR <object name> [ <seq-id> ] _   # Reference
temporaries
>
> The <seq-id> is strictly the lexical order in which the reference
> temporary was written in the source.
>
> The following exists as a practical example:
>
> _ZGR1bIvE_ would be given to the 'B' object that 't' would refer to.
> _ZGR1bIvE0_ would be given to the array of 'A' object references
> _ZGR1bIvE1_ would be given to the object containing the first array
> of ints, {1, 2, 3}
> _ZGR1bIvE2_ would be given to the object containing the second array
> of ints, {4, 5, 6}
>
> 2. The text describing <seq-id> should probably refrain from
> mentioning substitutable entities.
>
> --
> David Majnemer_______________________________________________
> cxx-abi-dev mailing list
> cxx-abi-dev at codesourcery.com
> http://sourcerytools.com/cgi-bin/mailman/listinfo/cxx-abi-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20140506/374843fd/attachment.html>


More information about the cxx-abi-dev mailing list