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

           Summary: $ in delegate literal causes Access Violation
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: k.hanaz...@gmail.com


--- Comment #0 from Kasumi Hanazuki <k.hanaz...@gmail.com> 2009-09-17 07:46:16 
PDT ---
Windows DMD 2.032

Evaluating $ in a delegate literal in an array indexing or slicing
throws access violation Error.

----

void main() {
    int[] a = [1];

    auto x = a[{ auto n = $; return 0; }()];
        // object.Error: Access Violation

    auto y = a[{ auto n = $; return 0; }() .. $];
        // object.Error: Access Violation
}

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

Reply via email to