From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31719 invoked by alias); 24 Jan 2005 14:53:59 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31695 invoked by uid 48); 24 Jan 2005 14:53:56 -0000 Date: Mon, 24 Jan 2005 14:53:00 -0000 Message-ID: <20050124145356.31694.qmail@sourceware.org> From: "webmyster at addoc dot u-psud dot fr" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20050124142847.19604.webmyster@addoc.u-psud.fr> References: <20050124142847.19604.webmyster@addoc.u-psud.fr> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19604] vtable error with virtual inheritance and arrays X-Bugzilla-Reason: CC X-SW-Source: 2005-01/txt/msg03518.txt.bz2 List-Id: ------- 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