[Issue 3665] New: Assignment with array slicing does not work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jan 2 09:01:22 PST 2010


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

           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
        AssignedTo: nobody at puremagic.com
        ReportedBy: kai at redstar.de


--- Comment #0 from kai at redstar.de 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: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list