https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118790
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- For the reproduction it is important that the var mentioned in debug info with *anothervar DECL_VALUE_EXPR value comes later in the DECL_VALUE_EXPR hash_map than anothervar with FRAME_whatever.anothervar in DECL_VALUE_EXPR. So that we first delete the hash map entry and then mark value whose entry has been deleted.