Summary: Assignment with array slicing does not work
           Product: D
           Version: 1.054
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD

--- Comment #0 from 2010-01-02 09:01:20 PST ---
The following piece of code produces the error "Bug.d(13): Error: 'K[] =
this.hash[]' is not of integral type, it is a ulong[]" with DMD 1.053 and DMD
1.054. It worked without problems in DMD 1.050.

final class Bug
    private ulong hash[8];

    protected void transform(ubyte[] input)
        ulong K[8];
        ulong block[8];
        ulong state[8];

        block[] = cast(ulong[]) input;

        state[] = block[] ^ (K[] = hash[]);

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to