www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20092] New: void[1] auto slicing makes the compiler hang

https://issues.dlang.org/show_bug.cgi?id=20092

          Issue ID: 20092
           Summary: void[1] auto slicing makes the compiler hang
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

void foo()
{
    (void[1]).init.front;
}

void front(T)(T[] a) {}

hangs the compiler forever, chewing through memory.

--
Jul 30 2019