← Back to index
|
Original Bugzilla link
Bug 10627 – Array ops with fixed sized arrays lose their length at function return point
Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2013-07-13T03:14:38Z
Last change time
2024-12-13T18:09:22Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
bearophile_hugs
Moved to GitHub: dmd#18630 →
Comments
Comment #0
by bearophile_hugs — 2013-07-13T03:14:38Z
alias Foo = float[2]; Foo bar(Foo x, Foo y) { Foo z = x[] + y[]; // OK return x[] + y[]; // error } void main() {} DMD 2.064alpha gives: test.d(4): Error: cannot implicitly convert expression (x[] + y[]) of type float[] to float[2u] See also Issue 10523
Comment #1
by robert.schadek — 2024-12-13T18:09:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB
https://github.com/dlang/dmd/issues/18630
DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB