[Issue 9233] New: compiler infinite recursion on recursive mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 28 04:27:51 PST 2012


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 at puremagic.com
        ReportedBy: luka8088 at owave.net


--- Comment #0 from luka8088 <luka8088 at owave.net> 2012-12-28 04:27:50 PST ---
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: -------


More information about the Digitalmars-d-bugs mailing list