Allocatable array valued function. gfortran vs ifort

后端 未结 1 673
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 15:10

Why is there different behavior between ifort and gfortran here? Compiled with ifort it returns false and with gfortran true. I ran into this problem before in my own code a

相关标签:
1条回答
  • 2020-11-30 15:41

    When compiling with ifort before version 17.0.1, the default behaviour is for the compiler not to use the Fortran rules for automatic allocation on intrinsic assignment.

    You will need to use an option like -assume realloc-lhs.

    0 讨论(0)
提交回复
热议问题