Thread overview
[Issue 6637] New: Postblits of static array elements are not called on function argument
Sep 09, 2011
Kenji Hara
Sep 09, 2011
Kenji Hara
Apr 27, 2012
SomeDude
May 08, 2012
Walter Bright
September 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6637

           Summary: Postblits of static array elements are not called on
                    function argument
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2011-09-09 09:13:45 PDT ---
struct S
{
    static int spblit;

    this(this){ ++spblit; }
}

void test()
{
    void func(S[3] sa){}

    S[3] sa;
    func(sa);   // sa should be copied
    assert(S.spblit == 3);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
September 09, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6637


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, wrong-code


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-09-09 09:36:08 PDT ---
https://github.com/D-Programming-Language/dmd/pull/375

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 27, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6637


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #2 from SomeDude <lovelydear@mailmetrash.com> 2012-04-27 14:45:30 PDT ---
Like issue 6636, this fails on 2.059 unless compiled with -release option.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 08, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6637



--- Comment #3 from github-bugzilla@puremagic.com 2012-05-07 19:43:30 PDT ---
Commit pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/2f09427e321e1587fdebc983f25f8b4c78cd5f0d
Issue 6637 - Postblits of static array elements are not called on function
argument

call element postblits of static array on function argument

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 08, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=6637


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: -------