really stupid bug
user456
user456 at 789.de
Sat Apr 1 18:38:08 UTC 2023
On Saturday, 1 April 2023 at 09:37:49 UTC, d007 wrote:
> ```d
> printf("test(v[0]=%p, v[1]=%p, v[2]=%p)\n", &(arr[0][0]),
> &(arr[0][1]), &(arr[0][2]));
> ubyte RR = 0;
> printf("test(v[0]=%p, v[1]=%p, v[2]=%p)\n", &(arr[RR][0]),
> &(arr[RR][1]), &(arr[RR][2]));
> ```
>
> first line you get the write output, 3 diff value.
>
> the seconds line you get 3 same value. change `ubyte RR = 0`
> into `emum RR = 0` fix the problem.
>
>
> test with ldc2 1.32.0
I can confirm, it's a regression from v1.30 to v1.31, reported
here https://github.com/ldc-developers/ldc/issues/4362.
More information about the Digitalmars-d
mailing list