www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5917] New: DMD gets tripped up by immutable struct members when struct contains postblit

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5917

           Summary: DMD gets tripped up by immutable struct members when
                    struct contains postblit
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ultimatemacfanatic gmail.com



2011-05-01 19:26:14 PDT ---
output from compiler is this:

Desktop: myloginname$ dmd2 -c bitset.d
Error: this is not mutable
Error: this is not mutable
Error: this is not mutable
Desktop: myloginname$

When I delete the "immutable" keyword, then it compiles fine.

Here is the input file cut down to just the bare bones of what's needed to
trigger the buggy behavior:

/* start of file */
struct bitset 
{
    private immutable uint  _length;

    this(this)
    {
    }
}
/* end of file */


Attached is the full file, with everything that it was meant to be used with. 
It's a port of some Python interpreter source code to D.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 01 2011
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5917




2011-05-01 19:29:00 PDT ---
Created an attachment (id=957)
D file to trigger the bug

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 01 2011
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5917


kennytm gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |kennytm gmail.com
         Resolution|                            |DUPLICATE



*** This issue has been marked as a duplicate of issue 5314 ***

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