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++/19604] vtable error with virtual inheritance and arrays


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


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