Thread overview
[Issue 8356] New: Disabled postblit ignored on return statement
Jul 07, 2012
Kenji Hara
Sep 30, 2012
Kenji Hara
July 07, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8356

           Summary: Disabled postblit ignored on return statement
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          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> 2012-07-07 08:55:09 PDT ---
This code should raise compile error, but doesn't.

struct S
{
    @disable this(this);
}

void main()
{
    S[3] sa;
    S[3] fsa() { return sa; }
}

In the return statement of function fsa should copy sa variable, but compiler ignores the disables postblit call.

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



--- Comment #1 from github-bugzilla@puremagic.com 2012-08-21 05:04:56 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/b4bc25d72e601436f3999abc5c9c31e464385052 fix Issue 8356 - Disabled postblit ignored on return statement

https://github.com/D-Programming-Language/dmd/commit/d2ba7864be9fce3dc0626020ed8721f68ac7b9b2 Merge pull request #1037 from 9rnsr/fix7579

Issue 7579 & 8356 - Disable postblit ignored on array operation and return statement

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


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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