C++ PATCH: Old ABI compatibility

Jakub Jelinek jakub@redhat.com
Tue Jul 11 10:54:00 GMT 2000


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


More information about the Gcc-patches mailing list