we recognized a weird error with the new compiler.
We use Code which is older than me and worked allready with many different compilers.
I write into this Forum and not to the support, because I can't reproduce this error with a small example.
+ abs(z(i)-z(i-1)).lt.genau_eps) then
executes with the runtime error
"Subscript #1 of the array Y has value 0 which is less than the lower bound of 1"
Did any Compiler-Options change from Compiler 10->11 so the Compiler maybe tries to change loop behaviour.
This only happens when Compiling with -O2, -g works correctly.
If I add an write statement to control "i", the problem also doesn't occur.
Is there maybe a compiler-option to avoid this?
Thanks in advance