www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18006] New: in GDB `ptype` returns `struct` for classes

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: nobody puremagic.com
          Reporter: b2.temp gmx.com
                CC: ibuclaw gdcproject.org

---
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.

--
Nov 22