Summary: DWARF: void arrays cause gdb errors
           Product: D
           Version: 1.057
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-05-20 12:04:46 PDT ---
(This bug report is for dmd 1.061)

This code:

extern (C) void abort();

struct X {
 union {
   void[] a;
   void[a.sizeof] b;

void foo(X b) {

void main() {

Makes gdb output "Dwarf Error: Cannot find DIE at 0x0 referenced from DIE at
0x68 [in module /tmp/test/dr]" when the abort() jumps back into the debugger,
and you request a stacktrace with "bt".

I suspect something is wrong with static void[] arrays.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to