Bug 3823 – An uncommon case of dynamic array creation
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2010-02-18T11:21:00Z
Last change time
2015-06-09T01:27:40Z
Assigned to
sean
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2010-02-18T11:21:13Z
void main() {
int[1] a = [10];
int i;
int[] b = new int[a[i]];
}
This code seems correct, but the compiler prints:
test.d(5): need size of rightmost array, not type a[i]
(Sorry for the bad title of this bug report, I don't know a better title.)
Comment #1 by matti.niemenmaa+dbugzilla — 2010-02-18T11:38:38Z
*** This issue has been marked as a duplicate of issue 783 ***