[Bug d/22480] New: `ptype` returns `struct` for D classes
b2.temp at gmx dot com
sourceware-bugzilla@sourceware.org
Thu Nov 23 01:13:00 GMT 2017
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.
More information about the Gdb-prs
mailing list