[cfe-dev] memory layout compatibility between Clang and gcc

David Majnemer via cfe-dev cfe-dev at lists.llvm.org
Thu Sep 17 19:44:19 PDT 2015


On Thu, Sep 17, 2015 at 3:43 PM, Welson Sun via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> Hi,
>
> I would like to get some confirmation/info/link regarding the memory
> layout compatibility between Clang and gcc. Specifically, for the struct
> and class construct. Default and when #pragma pack is used.
>

Clang and GCC are supposed to be compatible in this regard.  Any
incompatibility is likely a bug in one of the two compilers.


>
>
> Thanks,
> - Welson
>
> --
> - Welson
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150917/580a352a/attachment.html>


More information about the cfe-dev mailing list