[cxx-abi-dev] <prefix> mangling and substitutions

Richard Smith richardsmith at google.com
Wed Oct 22 22:13:46 UTC 2014


We have:

<prefix> ::= # empty
::= <substitution>

This implies that we generate a substitution for an empty prefix (and then
use that as the base of every subsequent prefix that doesn't start with a
<template-param> or <decltype>). This seems wrong to me, and doesn't match
current implementation practice.

One possible fix: replace "# empty" with "<unqualified-name>", and add
"<template unqualified-name>" to the productions for <template-prefix>.
This would also remove the ambiguity as to whether ::x is 1x or N1xE.

Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20141022/ac698d76/attachment.html>


More information about the cxx-abi-dev mailing list