This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]