I get a run-time segmentation fault on an integer assignment statement (np=some_integer, or even np=1) in a fortran 77 subroutine. I compiled the code using:
pgf90 -Mbounds -Mpreprocess -g -O0
The code is made of Fortran 77 and Fortran 90 subroutines/modules. This subroutine works perfectly fine when used in another plain Fortran 77 code compiled with pgf90.
Does anyone know how to identify the problem?