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

           Summary: DMD git: can't access array field properties from
                    static method
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Vladimir Panteleev <[email protected]> 2013-03-02 
06:47:21 EET ---
struct S
{
    int i[1];

    static void foo()
    {
        assert(0 < i[0].max);
    }
}

I assume this code is valid, as the problem appears with e.g. arrays of ints,
but not ints.

Works in 2.062, breaks in DMD git master (d0e1476c1).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to