https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83157
--- Comment #13 from Richard Biener <rguenth at gcc dot gnu.org> ---
So r224161 (hey Aldy!) caused this bogus DW_AT_abstract_origin and
Index: gcc/dwarf2out.c
===================================================================
--- gcc/dwarf2out.c (revision 255167)
+++ gcc/dwarf2out.c (working copy)
@@ -21231,10 +21231,8 @@ gen_variable_die (tree decl, tree origin
{
/* If we will be creating an inlined instance, we need a
new DIE that will get annotated with
- DW_AT_abstract_origin. Clear things so we can get a
- new DIE. */
+ DW_AT_abstract_origin. */
gcc_assert (!DECL_ABSTRACT_P (decl));
- old_die = NULL;
}
else
{
fixes that (but not the guality FAIL).