www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: thecybershadow gmail.com



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: -------
Feb 14 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7502




Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3f88f156879841ef79162916b2dbbf28e2a1fcc3
fix Issue 7502 - 2.056 regression: Assigning .init takes forever to compile for
large structs

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7502


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 26 2012