Point is: I can't. I tried to replicate the error inside main(), declaring an array of the same size and using the same variable assignment but I obtained only correct results. This is weird, however, ...
I cannot understand what's wrong with the compiler I use (4.068)... In another topic I pointed out that it's not properly handling interrupts for a dsPIC 30F6014, now I discovered another odd behavior ...