https://issues.dlang.org/show_bug.cgi?id=18006

          Issue ID: 18006
           Summary: in GDB `ptype` returns `struct` for classes
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

---
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 required for a class.

--

Reply via email to