The following obviously wrong program can be compiled with intel fortran compiler 13.1.3 with no error.
What compile option would detect it at compile time or run time ? We tried -check all and -warn interfaces,nouncalled -fpp -gen-interface -g -traceback -check uninit -check bounds -check pointers with no success. On the good side, valgrind detects the error. But valgrind also find many false problems with fortran programs.
integer, intent(inout) :: d(10)
d = 100
integer, allocatable :: d(:)
d = 0