------- Comment #5 from swagiaal at redhat dot com 2009-03-19 20:07 ------- Hmm.. compiling the testcase from comment #2 with gcc from http://koji.fedoraproject.org/koji/buildinfo?buildID=94544 still produces import statements only at the global level:
... <1><42>: Abbrev Number: 4 (DW_TAG_imported_declaration) <43> DW_AT_name : B <45> DW_AT_decl_file : 1 <46> DW_AT_decl_line : 6 <47> DW_AT_import : <0x29> [Abbrev Number: 2 (DW_TAG_namespace)] <1><4b>: Abbrev Number: 5 (DW_TAG_subprogram) <4c> DW_AT_external : 1 <4d> DW_AT_name : foo <51> DW_AT_decl_file : 1 <52> DW_AT_decl_line : 9 <53> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x7d): _Z3foov <57> DW_AT_low_pc : 0x8048444 <5b> DW_AT_high_pc : 0x8048470 <5f> DW_AT_frame_base : 0x0 (location list) <63> DW_AT_sibling : <0x7b> <2><67>: Abbrev Number: 6 (DW_TAG_lexical_block) <68> DW_AT_low_pc : 0x8048447 <6c> DW_AT_high_pc : 0x804846e <3><70>: Abbrev Number: 7 (DW_TAG_lexical_block) <71> DW_AT_low_pc : 0x8048461 <75> DW_AT_high_pc : 0x804846e <1><7b>: Abbrev Number: 4 (DW_TAG_imported_declaration) <7c> DW_AT_name : C <7e> DW_AT_decl_file : 1 <7f> DW_AT_decl_line : 11 <80> DW_AT_import : <0x29> [Abbrev Number: 2 (DW_TAG_namespace)] <1><84>: Abbrev Number: 4 (DW_TAG_imported_declaration) <85> DW_AT_name : D <87> DW_AT_decl_file : 1 <88> DW_AT_decl_line : 16 <89> DW_AT_import : <0x29> [Abbrev Number: 2 (DW_TAG_namespace)] ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37890