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?
_______________________________________________
cxx-abi-dev mailing list
[email protected]
http://sourcerytools.com/cgi-bin/mailman/listinfo/cxx-abi-dev

Reply via email to