Bug 7048 – Problem with out fixed-sized matrix

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-12-02T01:43:00Z
Last change time
2013-11-29T03:44:07Z
Keywords
rejects-valid
Assigned to
nobody
Creator
bearophile_hugs

Comments

Comment #0 by bearophile_hugs — 2011-12-02T01:43:16Z
void foo(out int[2][2] n) {} void main() { int[2][2] m; foo(m); } DMD 2.057head: test.d(1): Error: cannot implicitly convert expression (0) of type int to int[2u][]
Comment #1 by hsteoh — 2013-08-18T22:11:20Z
Confirmed this bug still happens in git HEAD (1a6da16ef112e03607574758b722698f2950b0de).
Comment #2 by yebblies — 2013-11-29T03:44:07Z
Seems to be fixed now.