I've just started using Intel's fortran compiler (I used to use IBM's). Among other changes, I noticed that passing an intrinsic function of an array as the argument to a subroutine resulted in a segmentation fault. Basically, if A is an array, then a call to
is fine, but, for example,
causes a segfault. I'm attaching a minimal code that will reproduce this. I compiled it with
ifort -m64 -r8 -O3 -o bad_ifort bad_ifort.F90
The segfault does not happen for small matrices, but my problem size is in fact a few thousand by a few thousand, and I never had a problem with this when I was using xlf. Is this a limitation of Intel's fortran compiler, or is there a compiler switch that I need to use?