www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7127] New: Const-related infinite recursion in DWARF generation

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: code klickverbot.at



---
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: -------
Dec 18 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7127


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED



11:47:41 PST ---
https://github.com/D-Programming-Language/dmd/commit/a7df55e4c7de5ab3294bc1111968da5051960a95

https://github.com/D-Programming-Language/dmd/commit/913ab53b0fd6e5b2b597b4661887d0a6fc66eea5

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 18 2011
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7127


klickverbot <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |webmaster villagersonline.c
                   |                            |om



---
*** Issue 5533 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 19 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7127


klickverbot <code klickverbot.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mrmocool gmx.de



---
*** Issue 7031 has been marked as a duplicate of this issue. ***

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