From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 329E43858CDA; Fri, 30 Dec 2022 18:16:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 329E43858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1672424167; bh=h34KDB/92Qng1m+eQlblcr4xO+bn3syyBRZ/3963Npg=; h=From:To:Subject:Date:From; b=tyOY/5M1ZMRJb2jxM+2Cw2dsBPAFztVR6Ksfcgbx3cx7/9mAxgyXZ1ZW5E56JlKFc 9cLdX/SSfGKz2S2jmD+3IohiqkCx74elaaDq0A5sCDpmp09YJZWPgkIhVwN8iqVa6j o6iwjfB/F2Y0K10lzH9NKu/UIrBtuzJfeTWOqyvk= From: "jsberg at bnl dot gov" To: gdb-prs@sourceware.org Subject: [Bug fortran/29949] New: Fortran type members with names identical to global identifiers can't be examined Date: Fri, 30 Dec 2022 18:15:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: fortran X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsberg at bnl dot gov 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D29949 Bug ID: 29949 Summary: Fortran type members with names identical to global identifiers can't be examined Product: gdb Version: 12.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran Assignee: unassigned at sourceware dot org Reporter: jsberg at bnl dot gov Target Milestone: --- Created attachment 14543 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14543&action=3Ded= it Fortran source code for test case Compile the test case shown, and try to examine the members of t0 in gdb. T= he x member can be printed just fine, but the members t and floor both fail with= a syntax error, I speculate because t is the type name and floor is the name = of a global function. gdb log: Breakpoint 1, p221230aa () at 221230aa.f90:9 9 write(*,*) t0%t,t0%x,t0%floor (gdb) p t0%t A syntax error in expression, near `t'. (gdb) p t0%x $1 =3D 4 (gdb) p t0%floor A syntax error in expression, near `floor'. --=20 You are receiving this mail because: You are on the CC list for the bug.=