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/44645] [4.5 Regression] wrong debug info for nested typedef



------- Comment #2 from redi at gcc dot gnu dot org  2010-07-21 15:50 -------
Am I allowed to confirm my own bugs?  doing so anyway

There's no difference when using -gdwarf-2 -gstrict-dwarf

readelf -wi for the output of g++ 4.5 shows S::ptr as:

<1><4f>: Abbrev Number: 5 (DW_TAG_pointer_type)
     DW_AT_byte_size   : 8

which is missing the type, so S::ptr is void*

The output of g++ 4.4 and 4.6 shows:

<1><4f>: Abbrev Number: 5 (DW_TAG_pointer_type)
     DW_AT_byte_size   : 8
     DW_AT_type        : <2d>

where <2d> is the info for S so S::ptr is S*


-- 

redi at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2010-07-21 15:50:23
               date|                            |


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


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