www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19550] New: [REG 2.078] Massive compiler backend slowdown

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

          Issue ID: 19550
           Summary: [REG 2.078] Massive compiler backend slowdown
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

Test case:
---

struct Buf
{
    char[7_000] buffer = void;
}

void main()
{
   uint len;

   auto b = Buf();
   b.buffer[len] = 'a';
}
---


In case you thought that the timeout of 5 seconds is too short, I compared
build times of the two releases in full.

 Compiler | Build time
----------------------
 2.077.1  | 0m0.527s
 2.078.0  | 1m3.694s

--
Jan 04 2019