https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96354
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to rguent...@suse.de from comment #8) > We could allow this in debug stmts but pretty much any (or very many) > workers on MEM_REFs will be quite unhappy about this. Of course we're not > likely to run them on debug stmts. But then, we do have debug Temps for > this... I was wondering if we are ok with even MEM_REF with DEBUG_EXPR_DECL as the address, but seems at least this routine is ok with that one. The question is what we would do with that at cfgexpand.c time. But I guess I can look at where this is folded into it and see if I can break it out into a debug expr decl and then see what expansion does for it.