This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug d/22480] New: `ptype` returns `struct` for D classes


https://sourceware.org/bugzilla/show_bug.cgi?id=22480

            Bug ID: 22480
           Summary: `ptype` returns `struct` for D classes
           Product: gdb
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: d
          Assignee: unassigned at sourceware dot org
          Reporter: b2.temp at gmx dot com
  Target Milestone: ---

---
module runnable;
class A {}

void main()
{
    A a;
}
---

`ptype a`


gives

---
type = struct runnable.A {
    <no data fields>
} *
---

which means that there's not the hint required if we must

`print a`

or 

`print *a`

the later syntax is required for a class.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]