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

--- Comment #0 from Christopher the Magnificent <> 
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;

/* 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:
------- You are receiving this mail because: -------

Reply via email to