This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/60833] Inheritance via typedef skips the typedef
- From: "mark at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 24 Apr 2014 09:19:43 +0000
- Subject: [Bug debug/60833] Inheritance via typedef skips the typedef
- Auto-submitted: auto-generated
- References: <bug-60833-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60833
--- Comment #1 from Mark Wielaard <mark at gcc dot gnu.org> ---
Confirmed with GNU C++ 4.10.0 20140417 (experimental). GCC doesn't emit the
typedef for tbase because it is unused. It will emit the typedef for tbase when
it is used for a variable like tbase y. But even then it will optimize out the
typedef from the inherentence tree and make the DW_TAG_inherentence tag
DW_AT_type attribute of the derived struct DIE point directly to the struct
base type DIE.