Re: [cfe-users] Clang Sizeof give diff value for Microsoft and Linux

2021-02-18 Thread Vivek Pandey via cfe-users
requirements than the Itanium ABI/GCC on Linux. I don't think there's a way to use the same ABI on both platforms - especially not if you are interacting with any code compiled by another compiler on both platforms (existing/foregin C++ precompiled libraries). On Thu, Jan 28, 2021

Re: [cfe-users] Clang Sizeof give diff value for Microsoft and Linux

2021-02-17 Thread Vivek Pandey via cfe-users
especially not if you are interacting with any code compiled by another compiler on both platforms (existing/foregin C++ precompiled libraries). On Thu, Jan 28, 2021 at 1:45 PM Vivek Pandey via cfe-users mailto:cfe-users@lists.llvm.org>> wrote: Hi Team, We are using Clang 11 for our product

[cfe-users] Clang Sizeof give diff value for Microsoft and Linux

2021-01-28 Thread Vivek Pandey via cfe-users
Hi Team, We are using Clang 11 for our product that has common C++ code base for Windows, Linux, Macintosh, …. We observed that sizeof operator gives different value on Windows and Linux/OSX, when the inheritance is from a common base class: Example Sample: #include struct Base {}; // empty