public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug debug/60833] New: Inheritance via typedef skips the typedef @ 2014-04-13 16:10 dblaikie at gmail dot com 2014-04-24 9:19 ` [Bug debug/60833] " mark at gcc dot gnu.org 2022-10-04 15:32 ` dblaikie at gmail dot com 0 siblings, 2 replies; 3+ messages in thread From: dblaikie at gmail dot com @ 2014-04-13 16:10 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60833 Bug ID: 60833 Summary: Inheritance via typedef skips the typedef Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: dblaikie at gmail dot com struct base { }; typedef base tbase; struct derived: tbase { } x; GCC doesn't emit the typedef of 'tbase' and instead describes 'derived' as directly deriving from 'base'. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug debug/60833] Inheritance via typedef skips the typedef 2014-04-13 16:10 [Bug debug/60833] New: Inheritance via typedef skips the typedef dblaikie at gmail dot com @ 2014-04-24 9:19 ` mark at gcc dot gnu.org 2022-10-04 15:32 ` dblaikie at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: mark at gcc dot gnu.org @ 2014-04-24 9:19 UTC (permalink / raw) To: gcc-bugs 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. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug debug/60833] Inheritance via typedef skips the typedef 2014-04-13 16:10 [Bug debug/60833] New: Inheritance via typedef skips the typedef dblaikie at gmail dot com 2014-04-24 9:19 ` [Bug debug/60833] " mark at gcc dot gnu.org @ 2022-10-04 15:32 ` dblaikie at gmail dot com 1 sibling, 0 replies; 3+ messages in thread From: dblaikie at gmail dot com @ 2022-10-04 15:32 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60833 --- Comment #3 from David Blaikie <dblaikie at gmail dot com> --- FWIW, bug on the GDB side seems to have been fixed ( https://sourceware.org/bugzilla/show_bug.cgi?id=16841 ) - might be nice to fix the GCC side too. (though, admittedly, I don't know that this extra debug info provides much value at the moment - I think GDB mostly looks straight through typedefs) ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-10-04 15:32 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-04-13 16:10 [Bug debug/60833] New: Inheritance via typedef skips the typedef dblaikie at gmail dot com 2014-04-24 9:19 ` [Bug debug/60833] " mark at gcc dot gnu.org 2022-10-04 15:32 ` dblaikie at gmail dot com
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).