Summary: DMD chokes on large nested loop over tuple.
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from David Simcha <> 2010-06-23 19:42:43 PDT ---
Requires at least 14 elements to fail.

import std.stdio, std.typetuple;

alias TypeTuple!(1,2,3,4,5,6,7,8,9,10,11,12,13,14) nums;

void main() {
    foreach(num1; nums) {
        foreach(num2; nums) {
            writeln(num1, "  ", num2);

Error Message (in the reduced test case) :  
Internal error: ..\ztc\blockopt.c 619

In the original case that I isolated this from, the compiler would eat ~300 MB
of memory and hang.  I can't reproduce this symptom in a reduced test case
because the compiler crashes first, so I'm not sure whether the two symptoms
are related.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to