This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/48603] New: Missing DW_TAG_typedef for anonymous struct in template


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

           Summary: Missing DW_TAG_typedef for anonymous struct in
                    template
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jan.kratochvil@redhat.com
                CC: dodji@gcc.gnu.org
            Target: x86_64-unknown-linux-gnu


template <typename T>
class F {
  typedef struct { int i; } C;
  C a;
};
F<int> f;

g++ (GCC) 4.7.0 20110414 (experimental)

 <1><1d>: Abbrev Number: 2 (DW_TAG_class_type)
    <1e>   DW_AT_name        : (indirect string, offset: 0x11): F<int>
 <2><29>: Abbrev Number: 3 (DW_TAG_structure_type)
    <2a>   DW_AT_name        : C

but there is no DW_TAG_typedef anywhere in this CU.

A similar case without template was PR debug/47510.  There should be also
present that GCC extension DW_AT_MIPS_linkage_name for the type.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]