From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CEBD93858C52; Tue, 27 Sep 2022 18:12:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CEBD93858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1664302343; bh=+2vOUcq4kQFO+o2DBoYyQaIHKegyas+LW2CVZxAPHG8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VnAlAxr+yDtJOXWV0J0M75z59ZDCDDzKKizopmuDGSB02Dcnl8BdrcsjC4sl5cwp9 U944xIpa5/qyrJvXMmjH0dHLe9/BGC9SzMei4p2Sufr6Kedurwi5l0YiqYrV6Y3CZ5 T9S5xUvc0PUfRnvQYf+BLtwWKPnqnpS4BlNdsMb0= From: "keiths at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/29602] cant use typedef class name of a baseclass Date: Tue, 27 Sep 2022 18:12:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: keiths at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29602 Keith Seitz changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |keiths at redhat dot com --- Comment #1 from Keith Seitz --- (In reply to B. Larsen from comment #0) > g++ is able to compile it with no problems, but in GDB I get: > (gdb)=20 > 17 return der.tbase::x; > (gdb) print der.base::x > $1 =3D 1 > (gdb) print der.tbase::x > A syntax error in expression, near `'. I think part of the problem is that the typedef is omitted from the debuginfo? Locally: (gdb) ptype tbase No symbol "tbase" in current context. Additionally, $ readelf -w 29602 | grep tbase $ --=20 You are receiving this mail because: You are on the CC list for the bug.=