From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8872 invoked by alias); 25 Apr 2002 14:19:37 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 8846 invoked by uid 61); 25 Apr 2002 14:19:35 -0000 Date: Thu, 25 Apr 2002 07:19:00 -0000 Message-ID: <20020425141935.8845.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, xternal@centibyte.org From: nathan@gcc.gnu.org Reply-To: nathan@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, xternal@centibyte.org, gcc-gnats@gcc.gnu.org Subject: Re: c++/6322: Multiple inheritance structure causes segfault on delete. X-SW-Source: 2002-04/txt/msg01329.txt.bz2 List-Id: Synopsis: Multiple inheritance structure causes segfault on delete. State-Changed-From-To: open->closed State-Changed-By: nathan State-Changed-When: Thu Apr 25 07:19:33 2002 State-Changed-Why: not a bug. your code is ill-formed. you are attempting to delete a derived object using a pointer to one of its bases. Refer to [5.3.5]. In particular, if the static type of the object (base in your case) is different to the dynamic type (derived), the static type shall be a base of the dynamic type (ok), and the static type shall have a virtual destructor, otherwise the behaviour is undefined. http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6322