public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "jsberg at bnl dot gov" <sourceware-bugzilla@sourceware.org> 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 [thread overview] Message-ID: <bug-29949-4717@http.sourceware.org/bugzilla/> (raw) 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.
reply other threads:[~2022-12-30 18:16 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-29949-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).