Excerpts from Jason Merrill via Gcc-patches's message of November 13, 2020 7:35 
pm:
> 
> The changes to dwarf2out revealed an existing issue with the D front-end: we
> were doing the wrong thing for importing a D CONST_DECL, because
> dwarf2out_imported_module_or_decl_1 was looking through it to its type,
> expecting it to be an enumerator, but in one case in thread.d, the constant
> had type int.  Adding the ability to import a C++ enumerator also fixed
> that, but that led to a crash in force_decl_die, which didn't know what to
> do with a CONST_DECL.  So now it does.
> 

Thanks, I've checked and confirmed that this indeed was happening, and
can see such imported decls in gdb now.

However the change has also caused an ICE when compiling thread.d with
the flags '-gdwarf-2 -gstrict-dwarf', which is the case when the target
is *-apple-darwin*.  I've raised PR98067 while I think about what would
be the most appropriate thing to do to address that.

Iain.

Reply via email to