https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97718
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:1436ef2a57e79b6b8ce5b03e32a38dd64f46c97c commit r11-4733-g1436ef2a57e79b6b8ce5b03e32a38dd64f46c97c Author: Richard Biener <rguent...@suse.de> Date: Thu Nov 5 09:27:28 2020 +0100 debug/97718 - fix abstract origin references after last change The change to clear the external_die_map slot after creating the concrete instance DIE broke abstract origin processing which tried to make sure to have those point to the early abstract instance and not the concrete instance. The following restores this by eventually following the abstract origin link in the concrete instance. 2020-11-05 Richard Biener <rguent...@suse.de> PR debug/97718 * dwarf2out.c (add_abstract_origin_attribute): Make sure to point to the abstract instance.