[cxx-abi-dev] A mangling for std::nullptr_t

Dennis Handly dhandly at cup.hp.com
Tue Mar 9 06:33:37 UTC 2010


>From: Jason Merrill <jason at redhat.com>
>On 03/04/2010 10:06 PM, Dennis Handly wrote:
>>> From: Jason Merrill<jason at redhat.com>
>>> How is "l" == "__fundamental_type_info"?
>>
>> _ZTIl (for long) is an object whose type is __fundamental_type_info.

>I still don't see the distinction between that and _ZTIDn
> (for std::nullptr_t) is an object whose type is __nullptr_type_info.

Probably because we used that typeid(void) comparison trick for (...)
so it was more obvious that we could do the same trick, rather than
use virtual dispatch to identify the special case.

>I understand your argument that we don't need a new type, I was just 
>confused by the talk about a mismatch between the type and the mangled name.
Jason

That's the main point, we don't need a new derived type_info type.



More information about the cxx-abi-dev mailing list