Summary: 2.056 regression: Assigning .init takes forever to
                    compile for large structs
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from Vladimir Panteleev <> 2012-02-14 
01:20:12 PST ---
struct S
    int[0x10000] arr;

S s;

void f()
    s = s.init;

Compiles quickly with 2.055, but too long to be practical with 2.056.

Workaround: use emplace.

Looking at the compiler stack trace, it seems to be stuck optimizing
deeply-nested comma expressions (lots of cgcs.c:ecom in the stack).

(this isn't something that should block the 2.058 release)

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

Reply via email to