[Issue 11426] New: Reinterpret element-wise array initializing should be rejeted

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 3 01:08:10 PDT 2013


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

           Summary: Reinterpret element-wise array initializing should be
                    rejeted
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-03 01:08:08 PST ---
This is a regression issue from 2.061.

void main()
{
    uint[]  udarr;
    uint[1] usarr;

    int[1] arr1; arr1 = udarr;  // Error, OK
    int[1] arr2; arr2 = usarr;  // Error, OK

    int[1] arr3 = udarr;    // accepted, BAD!
    int[1] arr4 = usarr;    // accepted, BAD!
}

-- 
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