www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11569] New: Incorrect handling of recursive mixin

https://d.puremagic.com/issues/show_bug.cgi?id=11569

           Summary: Incorrect handling of recursive mixin
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: john.loughran.colvin gmail.com


--- Comment #0 from John Colvin <john.loughran.colvin gmail.com> 2013-11-21
15:06:21 GMT ---
This just compiles forever, eating up memory at warp speed:

mixin template S(string s) 
{
    struct A
    {
    mixin(s);
    template Q(string s)
    {
        mixin S!s _A;
        alias Q = _S.A;
    }
    alias B = Q!"enum a = 1;";
    }
}

mixin S!"enum a = 0;";

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