[cxx-abi-dev] Mangling braced-init-list

Jason Merrill jason at redhat.com
Tue Jan 3 19:24:02 UTC 2012


This doesn't seem to have been discussed yet, and GCC to date has just 
rejected any testcase that required such mangling.  It seems 
straightforward to just represent it as a list of expressions:

<expression> ::= il <expression>* E

For a typed list such as T{42}, I first thought that it could be 
represented as a conversion (cv) around the above, but that would be 
ambiguous with T({42}), so I think it's better to give that form its own 
code,

<expression> ::= tl <type> <expression>* E

Any thoughts?

Jason



More information about the cxx-abi-dev mailing list