← Back to index
|
Original Bugzilla link
Bug 13078 – [dmd 2.066-b2] AA rehash failed with shared
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-08T14:53:00Z
Last change time
2014-08-22T07:17:17Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
NCrashed
Comments
Comment #0
by NCrashed — 2014-07-08T14:53:17Z
DMD: 2.066.0-b2 Platform: 3.14.9-200.fc20.x86_64 ``` shared string[][string] map; void main() { map.rehash; } ``` Compile-time error: ``` /usr/include/dmd/druntime/import/object.di(381): Error: cannot implicitly convert expression (aa) of type shared(immutable(char)[][][string]) to shared(immutable(char)[][])[string] source/app.d(5): Error: template instance object.rehash!(shared(immutable(char)[][][string]), shared(immutable(char)[][]), string) error instantiating ``` Explicit casting is a workaround: ``` void main() { (cast(shared(string[])[string])map).rehash; } ```
Comment #1
by k.hara.pg — 2014-07-09T14:27:24Z
https://github.com/D-Programming-Language/druntime/pull/877
Comment #2
by github-bugzilla — 2014-07-11T13:16:26Z
Commits pushed to master at
https://github.com/D-Programming-Language/druntime
https://github.com/D-Programming-Language/druntime/commit/f05177bb2daa83ddea507baed9628c4dedfd223d
fix Issue 13078 - [dmd 2.066-b2] AA rehash failed with shared
https://github.com/D-Programming-Language/druntime/commit/a13628a4534b07ee956b43c66ea311e50de94934
Merge pull request #877 from 9rnsr/fix13078 [REG2.066a] Issue 13078 - [dmd 2.066-b2] AA rehash failed with shared
Comment #3
by github-bugzilla — 2014-07-11T14:43:57Z
Commit pushed to 2.066 at
https://github.com/D-Programming-Language/druntime
https://github.com/D-Programming-Language/druntime/commit/3d039ed4004840302bc6c0834f2dd2541785a351
Merge pull request #877 from 9rnsr/fix13078 [REG2.066a] Issue 13078 - [dmd 2.066-b2] AA rehash failed with shared
Comment #4
by github-bugzilla — 2014-08-22T07:17:17Z
Commit pushed to master at
https://github.com/D-Programming-Language/druntime
https://github.com/D-Programming-Language/druntime/commit/3d039ed4004840302bc6c0834f2dd2541785a351
Merge pull request #877 from 9rnsr/fix13078