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

Dennis Handly dhandly at cup.hp.com
Thu Jun 28 22:40:53 UTC 2007


>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