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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Patrick Palka from comment #7)
> The error_mark_node in question is the TREE_TYPE of an SSA_NAME, which was
> set in tree-ssanames.cc:release_ssa_name_fn:
> 
> 598              if it happens to come along a released SSA name and tries
> 599              to inspect its type.  */
> 600           TREE_TYPE (var) = error_mark_node;
> 601
> 602           /* And finally queue it so that it will be put on the free
> list.  */
> 603           vec_safe_push (FREE_SSANAMES_QUEUE (fn), var);
> 604         }
> 605     }
> 606
> 607     /* If the alignment of the pointer described by PI is known, return
> true and

Let me try to debug this but I suspect it is a latent bug somewhere else.
Because the code just calls simple_dce_from_worklist which would be broken ...

Reply via email to