[Issue 4130] DMD crashes if it has to compile a project which is too complex

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 4 06:58:27 PST 2014


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


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
            Version|D1                          |D1 & D2
         Resolution|WORKSFORME                  |


--- Comment #18 from yebblies <yebblies at gmail.com> 2014-02-05 01:58:18 EST ---
I take that back, this crashes dmd (although it might be a different bug)

void fun(size_t a)() {}

string gen(size_t limit)
{
    string s;
    foreach(i; 0..limit)
    {
        s ~= "fun!__LINE__();\n";
    }
    return s;
}

void main()
{
    mixin(gen(2^^16));
}

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


More information about the Digitalmars-d-bugs mailing list