https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94469
--- Comment #16 from Tom de Vries <vries at gcc dot gnu.org> --- (In reply to Richard Biener from comment #14) > Using DW_AT_declaration for variables and CUs instead of PUs is IMHO the > most promising approach then. I managed to reproduce the "Multiple matches" problem by switching the language for the dwarf assembly test-case to ada (and using -readnow). And adding the DW_AT_declaration at the concrete DIE fixed that problem. So yeah, that looks promising.