[Issue 7127] New: Const-related infinite recursion in DWARF generation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 18 07:09:12 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7127

           Summary: Const-related infinite recursion in DWARF generation
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at klickverbot.at


--- Comment #0 from klickverbot <code at klickverbot.at> 2011-12-18 07:09:08 PST ---
This example crashes DMD from Git master when invoked with -g or -gc:
---
struct Foo {
  const(Foo)* bar;
}
Foo foo;
---
(the global is just necessary to trigger debug info generation for Foo).

What happens is that that for emitting debug info for const types, a copy of
the type is made at
https://github.com/D-Programming-Language/dmd/blob/master/src/backend/dwarf.c#L1571,
thus breaking the TYforward loop detection mechanism.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list