[Issue 11359] New: Assoc range violation when accessed via ref
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Oct 25 16:51:31 PDT 2013
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: nobody at puremagic.com
ReportedBy: puneet at coverify.org
--- Comment #0 from Puneet Goel <puneet at 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 at 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: -------
More information about the Digitalmars-d-bugs
mailing list