public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/45048]  New: duplicate DW_TAG_variable
@ 2010-07-23 17:54 tromey at gcc dot gnu dot org
  2010-07-23 21:06 ` [Bug debug/45048] " tromey at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tromey at gcc dot gnu dot org @ 2010-07-23 17:54 UTC (permalink / raw)
  To: gcc-bugs

Consider this test case:

namespace S
{
  int i = 24;

  int f() {
    extern int i;
    return i;
  }
};


When I compile this with g++ svn head (as of a few days ago) I see a
duplicate DW_TAG_variable:

 <2><3d>: Abbrev Number: 4 (DW_TAG_variable)
    <3e>   DW_AT_name        : i        
    <40>   DW_AT_decl_file   : 1        
    <41>   DW_AT_decl_line   : 6        
    <42>   DW_AT_MIPS_linkage_name: (indirect string, offset: 0xb): _ZN1S1iE    
    <46>   DW_AT_type        : <0x5c>   
    <4a>   DW_AT_external    : 1        
    <4b>   DW_AT_declaration : 1        
 <2><4c>: Abbrev Number: 4 (DW_TAG_variable)
    <4d>   DW_AT_name        : i        
    <4f>   DW_AT_decl_file   : 1        
    <50>   DW_AT_decl_line   : 3        
    <51>   DW_AT_MIPS_linkage_name: (indirect string, offset: 0xb): _ZN1S1iE    
    <55>   DW_AT_type        : <0x5c>   
    <59>   DW_AT_external    : 1        
    <5a>   DW_AT_declaration : 1        

I think the first one is bogus, given its line number.


-- 
           Summary: duplicate DW_TAG_variable
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tromey at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45048


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-07-27 11:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-23 17:54 [Bug debug/45048] New: duplicate DW_TAG_variable tromey at gcc dot gnu dot org
2010-07-23 21:06 ` [Bug debug/45048] " tromey at gcc dot gnu dot org
2010-07-27 10:40 ` jakub at gcc dot gnu dot org
2010-07-27 11:14 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).