[Issue 9630] New: DMD git: can't access array field properties from static method

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 1 20:47:22 PST 2013


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: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 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: -------


More information about the Digitalmars-d-bugs mailing list