https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118790
--- Comment #22 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Richard Biener from comment #21) > I think the VAR_DECL should be reachable from elsewhere (BLOCK_VARS ideally, > I'd like to get rid of local_decls). IIRC I wondered at some point > whether remove_unused_locals needs to walk DECL_VALUE_EXPRs but I think > I went down an alternate place for the fix/PR I'm remembering (which now > makes it difficult to track down...). PR116907 exactly.