[Issue 18006] New: in GDB `ptype` returns `struct` for classes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 23 00:56:37 UTC 2017
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 at puremagic.com
Reporter: b2.temp at gmx.com
CC: ibuclaw at 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.
--
More information about the Digitalmars-d-bugs
mailing list