> On Apr 23, 2015, at 11:35 AM, Richard Smith <[email protected]> wrote:
> The C++ standard requires that sizeof(nullptr) == sizeof(void*) (presumably 
> to support programs that use sizeof(NULL) for some purpose) but does not 
> appear to place any requirements on alignof(decltype(nullptr)). This clearly 
> needs to be part of the ABI, and current implementations of the Itanium C++ 
> ABI differ: Clang and EDG use alignof(void*). GCC uses 1.
> 
> We should pick a value and specify it in the ABI. alignof(void*) seems like a 
> better answer to me. Thoughts?

I agree that alignof(void*) is the right answer, and it should probably even be 
standardized that way.

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

Reply via email to