[cfe-dev] Mangling of new-expressions

Sebastian Redl sebastian.redl at getdesigned.at
Sat Feb 25 05:21:26 PST 2012

On 25.02.2012, at 13:15, Sebastian Redl wrote:

> Hi,
> I can't figure out how to send mails to cxx-abi-dev these days, so I can only send them here.
> Mangling of new-expressions is specified in the current ABI as:
> ::= [gs] nw <expression>* _ <type> <initializer>         # new (expr-list) type (init)
> where initializer is
> <initializer> ::= pi <expression>* E                                  # parenthesized initialization
> This is nice for new T(1), but it doesn't explain how to mangle new T{1}. What we need is something like
> ::= bi <expression>* E           # braced initialization
> I think this is unambiguous, but I'm not sure.

"bl" (for braced list) is probably better, as it doesn't share a letter with "pi".


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120225/341612b5/attachment.html>

More information about the cfe-dev mailing list