[cxx-abi-dev] C++0x: Mangling of rvalue reference types

Hommel Andreas-r58171 andreas.hommel at freescale.com
Fri Jun 29 06:15:22 UTC 2007


FWIW, the reference implementation in the Metrowerks compiler was using
"O" to mangle rvalue refs.


> -----Original Message-----
> From: Dennis Handly [mailto:dhandly at cup.hp.com]
> Sent: Freitag, 29. Juni 2007 00:41
> To: cxx-abi-dev at codesourcery.com; doug.gregor at gmail.com
> Subject: Re: [cxx-abi-dev] C++0x: Mangling of rvalue reference types
> 
> >From: "Doug Gregor" <doug.gregor at gmail.com>
> >I suggest that rvalue references be mangled as 'RR' (lvalue
references
> >are mangled as 'R'). Since we can't have a reference-to-reference,
> >there is no ambiguity.
>      <type> ::= RR <type>   # rvalue reference-to
> 
> Generating this is easy.  Demangling would need a simple look ahead to
> look for both.
> 
> Would using up another capital letter solve this trivial issue and
save
> more space?  We could use "B".  ;-)
> 
> (We do have two letter combos in TV TT TI TS and in ctor/dtor names.)



More information about the cxx-abi-dev mailing list