On Wednesday, 7 March 2018 at 12:49:30 UTC, berni wrote:
The following code compiles with ldc/dmd but not with gdc:cat test.dvoid main() { int[] count; { import std.string; ++count[3]; } }gdc test.dtest.d:8:16: error: only one index allowed to index void ++count[3]; ^gdc --versiongdc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
Is this a bug?
This seems to work fine in GDC 7. See https://explore.dgnu.org/g/1pfiY2
Mike