[Bug c/106560] ICE after conflicting types of redeclaration
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 9 17:54:27 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106560
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #6)
> (In reply to Andrew Pinski from comment #3)
> > Here is the simple fix, I will submit it this weekend.
> > [apinski@xeond2 gcc]$ git diff
> > diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
> > index f0fbdb48012..d9ada8e0f9e 100644
> > --- a/gcc/gimplify.cc
> > +++ b/gcc/gimplify.cc
> > @@ -6012,6 +6012,11 @@ gimplify_modify_expr (tree *expr_p, gimple_seq
> > *pre_p, gimple_seq *post_p,
> > gcc_assert (TREE_CODE (*expr_p) == MODIFY_EXPR
> > || TREE_CODE (*expr_p) == INIT_EXPR);
> >
> > + if (TREE_TYPE (*from_p) == error_mark_node)
>
> if (error_operand_p (*from_p))
Oh Ok, There was a few places which check directly against error_mark_node.
gimplify_decl_expr and gimplify_save_expr for example. I will submit a patch to
fix those too.
More information about the Gcc-bugs
mailing list