This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix 3154
- From: Mark Mitchell <mark at codesourcery dot com>
- To: "nathan at compsci dot bristol dot ac dot uk" <nathan at cs dot bris dot ac dot uk>, Nathan Sidwell <nathan at codesourcery dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 Nov 2001 14:07:41 -0800
- Subject: Re: [C++ PATCH] Fix 3154
--On Wednesday, November 14, 2001 01:52:33 PM +0000 Nathan Sidwell
<nathan@acm.org> wrote:
> Nathan Sidwell wrote:
>
>> {
>> ! /* Otherwise, it must be an immediate base class. */
>> ! my_friendly_assert
>> ! (same_type_p (BINFO_TYPE (BINFO_INHERITANCE_CHAIN (binfo)),
>> ! t), 20011113);
>> ! #if 0
>> ! for (i = n_baseclasses-1; i >= 0; i--)
>> ! if (BINFO_TYPE (binfo) == BINFO_TYPE (TREE_VEC_ELT (binfos,
>> i))) ! break;
>> ! if (i < 0)
>> {
>> ! cp_error ("`%T' is not an immediate base class of `%T'",
>> ! basetype, current_class_type);
>> continue;
>> }
>> ! #endif
> oops, I see I added some unreachable code. I'll remove that bit, if the
> patch
> is otherwise ok.
OK, with that change.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com