From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6F4193858D28; Fri, 8 Apr 2022 14:24:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F4193858D28 From: "nils-christian.kempke at intel dot com" To: gdb-prs@sourceware.org Subject: [Bug fortran/22497] Unable to access base type of derived types Date: Fri, 08 Apr 2022 14:24:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: fortran X-Bugzilla-Version: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nils-christian.kempke at intel dot com X-Bugzilla-Status: UNCONFIRMED 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: 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2022 14:24:36 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D22497 --- Comment #2 from Kempke, Nils-Christian --- I forgot to mention that also for gfortran the bugfix did something: I can now do =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Breakpoint 1, mvce () at ./f.f90:17 17 print*, foo, bar (gdb) p foo $1 =3D ( my_int =3D 0 ) (gdb) p bar $2 =3D ( my_type =3D ( my_int =3D 1 ) ) (gdb) p bar%my_int There is no member named my_int. (gdb) p bar%my_type $3 =3D ( my_int =3D 1 ) (gdb) p bar%my_type%my_int $4 =3D 1 (gdb) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Note, that since the inheritance info is missing GDB has no way of knowing = that "p bar%my_int" is legal and one has to go the way via accessing the member variable first. --=20 You are receiving this mail because: You are on the CC list for the bug.=