Compile the program below with dmd -debug -g, and step inside Bobo::coco and Foo::coco respectively, using either GDB or ZeroBUGS. The struct / classes are shown as opaque (GDC generates the correct information). import std.stdio; struct Bobo { int a; void coco() { writefln("Bobo::coco"); a += 1; } }; class Foo { int a; void coco() { writefln("Foo::coco"); a += 1; } }; void main() { Bobo b; b.coco(); Foo i = new Foo; i.coco(); }
I can confirm this is still present in DMD 2.034 (DMD 1.049 works fine), at least using GDB 7.0 (with D patches) and -gc compiler flag (-g is known to be broken when using GDB).
Woops, forgot the -gc flag. The test can't be explored because of the bug 1079, but removing the "import std.stdio" and the calls to writefln() I can see the struct Bobo and class Foo members without any problems, so I'm closing this bug.