[Issue 9498] New: Rang violation using AA

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 12 11:26:49 PST 2013


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

           Summary: Rang violation using AA
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timvol at ymail.com


--- Comment #0 from Tim Volckmann <timvol at ymail.com> 2013-02-12 11:26:48 PST ---
The following worked in DMD 2.060 (and previous versions):

string[string] myValues;

ref string getValue(string v) {
   return myValues[v];
}

void main() {
   getValue("myValue") = "myString";
}

But in 2.061 it throws a range violation.

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