This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ PATCH] Fix 3154
- From: Nathan Sidwell <nathan at acm dot org>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Wed, 14 Nov 2001 13:52:33 +0000
- Subject: Re: [C++ PATCH] Fix 3154
- References: <3BF2487F.2E5C5534@codesourcery.com>
- Reply-to: nathan at compsci dot bristol dot ac dot uk
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.
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
The voices in my head told me to say this
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk