RE: Re: Query regarding unusual behaviour for tail padding with different c++ standards

2021-12-13 Thread Nayan Deshmukh via Gcc
> On Mon, 13 Dec 2021 at 05:14, Andrew Pinski wrote: > > > > On Sun, Dec 12, 2021 at 9:04 PM Nayan Deshmukh via Gcc   > >wrote: > > > #include  > > > #include  > > > #include  > > > struct A { > > >   int a; > > >   uint64_

Query regarding unusual behaviour for tail padding with different c++ standards

2021-12-12 Thread Nayan Deshmukh via Gcc
Hello, When I tried to link two modules which were compiled with different c++ standards, I observed that the offset of some fields of struct were different when the same struct was accessed from both the modules. The issue is due to the use of tail padding to allocate member variables in some