https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85078

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> --- tree.c      (revision 258851)
> +++ tree.c      (working copy)
> @@ -5522,6 +5522,8 @@ find_decls_types_r (tree *tp, int *ws, v
>           FOR_EACH_VEC_ELT (*BINFO_BASE_BINFOS (TYPE_BINFO (t)), i, tem)
>             fld_worklist_push (TREE_TYPE (tem), fld);
>           fld_worklist_push (BINFO_VIRTUALS (TYPE_BINFO (t)), fld);
> +         fld_worklist_push (BINFO_TYPE (tem), fld);
> +         fld_worklist_push (BINFO_VTABLE (tem), fld);

I don't see how this can work, tem should be NULL here, as it is outside of the
FOR_EACH_VEC_ELT loop.  That said, I don't really see the b class ever
appearing here, t is just i and g, nothing else.

Reply via email to