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

           Summary: Pure function cannot access static __dollar
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bugzi...@kyllingen.net


--- Comment #0 from Lars T. Kyllingstad <bugzi...@kyllingen.net> 2010-11-09 
03:32:24 PST ---
Test case:

    void f() pure
    {
        static immutable int[3] a = [1,2,3];
        auto i = a[$-1];
    }

test.d(4): Error: pure function 'f' cannot access mutable static data
'__dollar'

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

Reply via email to