← Back to index
|
Original Bugzilla link
Bug 11359 – Assoc range violation when accessed via ref
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-25T16:51:00Z
Last change time
2013-10-26T13:31:06Z
Keywords
pull, wrong-code
Assigned to
nobody
Creator
puneet
Comments
Comment #0
by puneet — 2013-10-25T16:51:30Z
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
Comment #1
by puneet — 2013-10-25T17:01:08Z
Seems to have got introduced by: 7c6d516d97e43f94c3ef8e8ab072d6714febaf60 2013-10-23 Fix dtor handling issue introduced by fixing 3825
Comment #2
by k.hara.pg — 2013-10-26T04:29:57Z
https://github.com/D-Programming-Language/dmd/pull/2693
Comment #3
by puneet — 2013-10-26T05:50:41Z
(In reply to comment #2) >
https://github.com/D-Programming-Language/dmd/pull/2693
Works at my end. Thanks.
Comment #4
by github-bugzilla — 2013-10-26T13:29:56Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/b83e95a14883fe0d334c4a5b4729ef372f4820bb
fix Issue 11359 - Assoc range violation when accessed via ref
https://github.com/D-Programming-Language/dmd/commit/e1e813bd40fa0ea90dab1e1af449f22a5c154c6d
Merge pull request #2693 from 9rnsr/fix11359 [REG2.064a] Issue 11359 - Assoc range violation when accessed via ref
Comment #5
by github-bugzilla — 2013-10-26T13:30:45Z
Commit pushed to 2.064 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/055110fca22a5a5180ecba0df3315e505cbd03d7
Merge pull request #2693 from 9rnsr/fix11359 [REG2.064a] Issue 11359 - Assoc range violation when accessed via ref