From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30742 invoked by alias); 8 Jan 2004 08:10:47 -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 30729 invoked by alias); 8 Jan 2004 08:10:45 -0000 Date: Thu, 08 Jan 2004 08:10:00 -0000 Message-ID: <20040108081045.30728.qmail@sources.redhat.com> From: "falk dot hueffner at student dot uni-tuebingen dot de" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20031111075141.13005.stephenma@telus.net> References: <20031111075141.13005.stephenma@telus.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/13005] Pointer wrongly adjusted for derived class containing virtual function X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg00695.txt.bz2 List-Id: ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de 2004-01-08 08:10 ------- Subject: Re: [3.3/3.4 Regresssion] [aliasing] Pointer wrongly adjusted for derived class containing virtual function "stephenma at telus dot net" writes: > ------- Additional Comments From stephenma at telus dot net 2004-01-08 02:01 ------- > I will attach a patch against the mainline snapshot gcc-3.4-20031231. + if (warn_cast_incomplete) + if (!COMPLETE_TYPE_P (TREE_TYPE (type)) || !COMPLETE_TYPE_P (TREE_TYPE (otype))) + warning ("casting from/to an incomplete type is risky; see -Wno-cast-incomplete"); + Lines must not be longer than 78 characters. Also leave out the "see", we don't do that for any other warning. +class Beta; *b; // Incomplete class Spurious ;. The changelog lacks file references. Also, you need test cases (http://gcc.gnu.org/codingconventions.html). If you have that, I suggest you post your patch to gcc-patches. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13005