public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/54410] New: doubled DW_TAG_template_type_param
@ 2012-08-29 15:25 tromey at gcc dot gnu.org
  2013-01-25 19:55 ` [Bug debug/54410] [4.6/4.7/4.8 Regression] " law at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tromey at gcc dot gnu.org @ 2012-08-29 15:25 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 54410
           Summary: doubled DW_TAG_template_type_param
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: tromey@gcc.gnu.org


I'm using a relatively recent git gcc:

commit d789d72be457df9811328179702cab8ac5830465
Author: walt <walt@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Mon Aug 27 17:27:04 2012 +0000


I compiled this program, derived from a libstdc++ test case:

#include <unordered_set>
#include <string>

typedef std::unordered_set<std::string> Set;
Set m;

int main()
{
}


The DWARF shows duplicate template arguments for unordered_set.
I think each parameter name should appear just a single time:

 <3><38a8>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38a9>   DW_AT_name        : (indirect string, offset: 0x6e7): _Value    
    <38ad>   DW_AT_type        : <0x1d44>    
 <3><38b1>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38b2>   DW_AT_name        : (indirect string, offset: 0x6f29): _Hash    
    <38b6>   DW_AT_type        : <0x379c>    
 <3><38ba>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38bb>   DW_AT_name        : (indirect string, offset: 0x9ebb): _Pred    
    <38bf>   DW_AT_type        : <0x3934>    
 <3><38c3>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38c4>   DW_AT_name        : (indirect string, offset: 0x7826): _Alloc    
    <38c8>   DW_AT_type        : <0x453a>    
 <3><38cc>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38cd>   DW_AT_name        : (indirect string, offset: 0x6e7): _Value    
    <38d1>   DW_AT_type        : <0x1d44>    
 <3><38d5>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38d6>   DW_AT_name        : (indirect string, offset: 0x6f29): _Hash    
    <38da>   DW_AT_type        : <0x379c>    
 <3><38de>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38df>   DW_AT_name        : (indirect string, offset: 0x9ebb): _Pred    
    <38e3>   DW_AT_type        : <0x3934>    
 <3><38e7>: Abbrev Number: 46 (DW_TAG_template_type_param)
    <38e8>   DW_AT_name        : (indirect string, offset: 0x7826): _Alloc    
    <38ec>   DW_AT_type        : <0x453a>


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

end of thread, other threads:[~2013-01-31 16:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-29 15:25 [Bug debug/54410] New: doubled DW_TAG_template_type_param tromey at gcc dot gnu.org
2013-01-25 19:55 ` [Bug debug/54410] [4.6/4.7/4.8 Regression] " law at redhat dot com
2013-01-31 12:02 ` aldyh at gcc dot gnu.org
2013-01-31 16:34 ` jason at gcc dot gnu.org
2013-01-31 16:44 ` jason at gcc dot gnu.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).