D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 3823 - An uncommon case of dynamic array creation
Summary: An uncommon case of dynamic array creation
Status: RESOLVED DUPLICATE of issue 783
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86 Windows
: P2 normal
Assignee: Sean Kelly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-18 11:21 UTC by bearophile_hugs
Modified: 2015-06-09 01:27 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description bearophile_hugs 2010-02-18 11:21:13 UTC
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 Matti Niemenmaa 2010-02-18 11:38:38 UTC

*** This issue has been marked as a duplicate of issue 783 ***