From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11178 invoked by alias); 24 Apr 2014 09:19:47 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 11138 invoked by uid 48); 24 Apr 2014 09:19:43 -0000 From: "mark at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug debug/60833] Inheritance via typedef skips the typedef Date: Thu, 24 Apr 2014 09:19:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: debug X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg01815.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60833 --- Comment #1 from Mark Wielaard --- 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.