This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19604] vtable error with virtual inheritance and arrays
- From: "webmyster at addoc dot u-psud dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Jan 2005 14:53:56 -0000
- Subject: [Bug c++/19604] vtable error with virtual inheritance and arrays
- References: <20050124142847.19604.webmyster@addoc.u-psud.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From webmyster at addoc dot u-psud dot fr 2005-01-24 14:53 -------
(In reply to comment #2)
> I think this is invalid and here is why?
> Basically the sizeof (A) is smaller than sizeof(B).
> But if you convert from B* to A* you cannot access the second element any more.
I'm agree it's not a conventional use of inheritance and tables. But it may be
valid.
Where could I find the C++ specifications used to implement g++, to get a valid
solution to my problem ?
Moreover, I would like to have a warning during the compilation. I think the
compiler can warning on each call of non first element of a table of classes
containing vtable.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19604