------- Comment #1 from tromey at gcc dot gnu dot org 2010-07-23 21:06 ------- I suppose the duplicate is due to the "i" inside of "f". But inside of f I see:
<2><78>: Abbrev Number: 7 (DW_TAG_lexical_block) <79> DW_AT_low_pc : 0x3 <7d> DW_AT_high_pc : 0x8 <3><81>: Abbrev Number: 4 (DW_TAG_variable) <82> DW_AT_name : i <84> DW_AT_decl_file : 1 <85> DW_AT_decl_line : 6 <86> DW_AT_MIPS_linkage_name: (indirect string, offset: 0xb): _ZN1S1iE <8a> DW_AT_type : <0x5c> <8e> DW_AT_external : 1 <8f> DW_AT_declaration : 1 I think this would be clearer if "i" were declared using DW_AT_import, or at the very least using the outer declaration as a specification. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45048