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


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


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