www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9233] New: compiler infinite recursion on recursive mixin

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9233

           Summary: compiler infinite recursion on recursive mixin
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: luka8088 owave.net



The following code causes dmd compiler to infinitely allocate new memory with
high cpu load, so I suspect a infinite recursion in the compiler.

----------

module program;

mixin template ParentMix () {
  mixin template ChildMix (alias PMix) {}
}

class A {
  mixin ParentMix pmix;
}

mixin A.pmix.ChildMix!(A.pmix);

void main () {}

----------

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


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE



The root problem is same as bug 9026, and it is already fixed.
Then, infinitely allocation and high cpu load do not occur with git head.

*** This issue has been marked as a duplicate of issue 9026 ***

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





 The root problem is same as bug 9026, and it is already fixed.
 Then, infinitely allocation and high cpu load do not occur with git head.
 
 *** This issue has been marked as a duplicate of issue 9026 ***
Finally this issue will have been fixed in 2.061. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 28 2012