http://d.puremagic.com/issues/show_bug.cgi?id=11359
Summary: Assoc range violation when accessed via ref Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: regression Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: pun...@coverify.org --- Comment #0 from Puneet Goel <pun...@coverify.org> 2013-10-25 16:51:30 PDT --- Compiles and runs fine with 2.063. But when compiled with latest github HEAD, I get. $ rdmd --force /tmp/test.d core.exception.RangeError@test(16): Range violation void main() { // 1 Bar.foo = new Foo; // 2 Bar.zoo("test"); // 3 } // 4 class Foo { // 5 Bar[string] bun; // 6 } // 7 class Bar { // 8 static Foo foo; // 9 static ref fun() { // 10 return foo.bun; // 11 } // 12 static void zoo(string baz) { // 13 Bar table; // 14 fun[baz] = new Bar; // 15 table = fun[baz]; // 16 } // 17 } // 18 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------