Re: Bug after local import statement?

2018-03-08 Thread berni via D.gnu
On Thursday, 8 March 2018 at 05:04:50 UTC, Mike Franklin wrote: This seems to work fine in GDC 7. See https://explore.dgnu.org/g/1pfiY2 That's great. Than I only have to wait until gdc 7 makes it to Debian stable. ;-) Thanks for your reply.

Re: Bug after local import statement?

2018-03-07 Thread Mike Franklin via D.gnu
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.d void main() { int[] count; { import std.string; ++count[3]; } } gdc test.d test.d:8:16: error: only one index allowed to index void

Bug after local import statement?

2018-03-07 Thread berni via D.gnu
The following code compiles with ldc/dmd but not with gdc: cat test.d void main() { int[] count; { import std.string; ++count[3]; } } gdc test.d test.d:8:16: error: only one index allowed to index void ++count[3]; ^ gdc --version gdc