[Issue 7502] New: 2.056 regression: Assigning .init takes forever to compile for large structs

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 14 01:20:13 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=7502

           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
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list