← Back to index
|
Original Bugzilla link
Bug 12212 – Static array assignment makes slice implicitly
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-02-19T23:09:00Z
Last change time
2017-07-19T03:28:24Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
See also
https://issues.dlang.org/show_bug.cgi?id=10540
Comments
Comment #0
by k.hara.pg — 2014-02-19T23:09:54Z
This code should compile, but doesn't. void func(int[3] a) {} void main() { int[3] a, b; func(a = b); // Error: function func(int[3] a) is not callable using argument types (int[]) }
Comment #1
by k.hara.pg — 2014-04-18T13:26:45Z
https://github.com/D-Programming-Language/dmd/pull/3467
Comment #2
by github-bugzilla — 2014-04-19T02:32:00Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/5bf0788710de257e0186d94ede25512d1951c697
fix Issue 12212 - Static array assignment makes slice implicitly Do not make implicit slicing in front-end, then support proper codegen for `(sarray = sarray)` assignment and construction in glue-layer.
https://github.com/D-Programming-Language/dmd/commit/dd0cf86b43877b18c0e93830b193a48ad66ff17a
Merge pull request #3467 from 9rnsr/fix12212 Issue 12212 - Static array assignment makes slice implicitly
Comment #3
by safety0ff.bugz — 2014-06-16T23:48:52Z
*** Issue 12889 has been marked as a duplicate of this issue. ***