This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

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


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...


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