http://d.puremagic.com/issues/show_bug.cgi?id=2712


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugd...@yahoo.com.au
            Version|unspecified                 |1.00


--- Comment #1 from Don <clugd...@yahoo.com.au> 2010-01-27 02:43:25 PST ---
This is a parsing error. Workaround: Adding () around the x[n] allows it to
compile.

void foo(uint n, in uint[] x) {
    auto y = new uint[ (x[n]) ];
}

void main() {
    foo(7, new uint[10]);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to