D.gnu - Bug after local import statement?
- berni (19/22) Mar 07 2018 void main()
- Mike Franklin (4/21) Mar 07 2018 This seems to work fine in GDC 7. See
- berni (3/5) Mar 08 2018 That's great. Than I only have to wait until gdc 7 makes it to
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 Copyright (C) 2016 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Is this a bug?
Mar 07 2018
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 20170516Is this a bug?This seems to work fine in GDC 7. See https://explore.dgnu.org/g/1pfiY2 Mike
Mar 07 2018
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/1pfiY2That's great. Than I only have to wait until gdc 7 makes it to Debian stable. ;-) Thanks for your reply.
Mar 08 2018