https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68072
--- Comment #3 from Dominik Vogt <vogt at linux dot vnet.ibm.com> --- Created attachment 36588 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36588&action=edit Experimental fix The attached patch fixes the problem for us by skipping DW_TAG_variable DWARF info that only contains a DW_AT_specification (no DW_AT_type and DW_AT_name), assuming that they are just duplicate declarations/definitions.