Bug 18006 – in GDB `ptype` returns `struct` for classes

Status
RESOLVED
Resolution
MOVED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2017-11-23T00:56:37Z
Last change time
2017-11-23T01:15:53Z
Assigned to
No Owner
Creator
Basile B.

Comments

Comment #0 by b2.temp — 2017-11-23T00:56:37Z
--- 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.
Comment #1 by b2.temp — 2017-11-23T01:15:53Z