[cxx-abi-dev] Mangling of string literals versus variadic templates
Richard Smith
richardsmith at google.com
Tue Dec 17 02:39:37 UTC 2013
On Mon, Dec 16, 2013 at 6:32 PM, John McCall <rjmccall at apple.com> wrote:
> On Dec 16, 2013, at 6:07 PM, Richard Smith <richardsmith at google.com>
> wrote:
>
> On Mon, Dec 16, 2013 at 5:33 PM, John McCall <rjmccall at apple.com> wrote:
>
>> On Dec 16, 2013, at 5:10 PM, Richard Smith <richardsmith at google.com>
>> wrote:
>> > Consider:
>>
>> Remind me why it’s impossible to go back to the committee and repeatedly
>> weaken any remaining guarantees about string literal addresses until none
>> of this is important?
>
>
> If you really want to go that way, how about striking this mangling from
> the Itanium ABI entirely and replacing it with a note saying that we
> believe this is a standard defect and aren't going to support it? Is a weak
> and defective spec here (only implemented by a single frontend, as far as I
> can tell) any better than no spec at all?
>
>
> I’d be happy to strike it from the spec in that case, or at least mark it
> as a footnote for implementations that choose to care, if there are any.
>
> If we left it as a footnote, I think your proposals seem sound, although
> I’d want the example to clarify that it’s also the same literal if multiply
> expanded by the pack expansion, which I’m not sure is guaranteed by the
> language.
>
Examples are always nice =) FWIW, we already say "nth distinct string
literal", which seems to imply that string literals with identical contents
get the same mangling.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sourcerytools.com/pipermail/cxx-abi-dev/attachments/20131216/f28a3c4c/attachment.html>
More information about the cxx-abi-dev
mailing list