public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/29949] New: Fortran type members with names identical to global identifiers can't be examined
@ 2022-12-30 18:15 jsberg at bnl dot gov
0 siblings, 0 replies; only message in thread
From: jsberg at bnl dot gov @ 2022-12-30 18:15 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=29949
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=14543&action=edit
Fortran source code for test case
Compile the test case shown, and try to examine the members of t0 in gdb. The 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 = 4
(gdb) p t0%floor
A syntax error in expression, near `floor'.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-30 18:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-30 18:15 [Bug fortran/29949] New: Fortran type members with names identical to global identifiers can't be examined jsberg at bnl dot gov
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).