Hello,
I am very new both in Fortran and in FTN95, so it's not surprising I have questions; here's the first 😃
My program has several **allocate **commands scattered through it. When I try to compile, it gives me the errors error 137 - Operand incompatible with opcode error 123 - Invalid machine instruction generated to the lines that correspond to *some *allocate, but not all.
I noticed that, if I allocate 1D arrays, as for example
allocate(a(n))
there's no problem, but if I allocate 2D arrays, as in allocate(b(n,m)), it gives me that error. I'm pretty sure there are no mistakes in the code itself, so what's happening?
Thank you in advance, Luca