[Issue 10017] New: Can not assign to a Variant another Variant holding a bigger structure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 2 10:31:16 PDT 2013


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

           Summary: Can not assign to a Variant another Variant holding a
                    bigger structure
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: octavian.cacina at outlook.com
            Blocks: 9122


--- Comment #0 from Tavi Cacina <octavian.cacina at outlook.com> 2013-05-02 10:31:15 PDT ---
---
import std.variant;

struct S
{
  int[9] s;
}

void main()
{
  Variant v1, v2; // maximum payload size 32 bytes
  v1 = S(); // OK, the payload is allocated with new
  v2 = v1; // AssertError: target must be non-null
}
---


This error affects also the max size of a std.concurrency message, see #9122.

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