[Issue 5917] New: DMD gets tripped up by immutable struct members when struct contains postblit

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 1 19:30:04 PDT 2011


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 at puremagic.com
        ReportedBy: ultimatemacfanatic at gmail.com


--- Comment #0 from Christopher the Magnificent <ultimatemacfanatic at 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: -------


More information about the Digitalmars-d-bugs mailing list