On May 24, 2013, at 1:10 PM, Jason Merrill <[email protected]> wrote:
> On 05/24/2013 03:57 PM, John McCall wrote:
>> The requirement I'm complaining about is that arguably your
>> example is guaranteed to work even if get_sptr() is implemented
>> thusly:
>> 
>>   inline const char *get_sptr() { return "foo"; }
>> 
>> Because it's a string literal in an extern inline function and so it's
>> the same object.
> 
> Yes, and the ABI already specifies mangling for such a string literal:
> 
>  <local-name> := Z <function encoding> E s [<discriminator>]

Ah, so we do, thanks.

John.
_______________________________________________
cxx-abi-dev mailing list
[email protected]
http://sourcerytools.com/cgi-bin/mailman/listinfo/cxx-abi-dev

Reply via email to