[Bug c++/46317] Incorrect construction vtable on ARM in case of diamond shaped virtual inheritance

end3er at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Jan 30 17:51:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46317

end3er at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.5.0                       |4.2.1

--- Comment #7 from end3er at gmail dot com 2011-01-30 17:35:32 UTC ---
(In reply to comment #6)
> This test case works for me on armv5tel-linux-gnueabi with gcc 4.4.5, 4.5.2,
> and 4.6-20110122.


Oops, you are right actually, I missed one line in my static analysis (I didn't
have an ARM target to live test...):
    8298:       e285101c        add     r1, r5, #28
This line actually correctly sets r1 to <construction vtable for C-in-D>+0x10
when compiling with GCC 4.5.0

So the bug is actually only seen with GCC 4.2.1

Sorry for the false positive...



More information about the Gcc-bugs mailing list