This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: C++ PATCH: Old ABI compatibility


On Tue, Jul 11, 2000 at 11:03:52AM -0700, Mark Mitchell wrote:
> 
> This patch restores the old ABI on this test-case provided by Jakub:
> 
>   class B{};
>   class C{};
>   class A: public B, public virtual C {};
> 
> However, the original code it (Qt) apparently depends on B and A
> having the same address.  This is false under the new ABI, and GCC 3.0
> will not support the old ABI.  Depending on the layout algorithms in
> the C++ compiler is extremely non-portable.

They started using reinterpret_cast<> and static_cast<> already
as suggested by Jason Merill.

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]