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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The problem is that with the PTRMEM_CST handling moved from the gimplification
hook to genericization (the right thing), as apparently we don't genericize
DECL_INITIAL of VAR_DECLs, nothing handles the PTRMEM_CST anymore.
We have a DECL_EXPR with an artificial VAR_DECL in there that has DECL_INITIAL
set to a CONSTRUCTOR that contains PTRMEM_CST somewhere.
This is due to
  else if (IS_TYPE_OR_DECL_P (stmt))
    *walk_subtrees = 0;
Shall we recurse on DECL_INITIAL when handling DECL_EXPRs, when handling the
VAR_Ps, something else?  Or just call a different walk_tree that only removes
the PTRMEM_CSTs and nothing else?

Reply via email to