Program crash for array copy with ifort

后端 未结 2 1139
-上瘾入骨i
-上瘾入骨i 2021-01-18 09:45

This program crashes with Illegal instruction: 4 on MacOSX Lion and ifort (IFORT) 12.1.0 20111011

program foo
      real, pointer :: a(:,:), b(:         


        
2条回答
  •  不思量自难忘°
    2021-01-18 10:20

    Use "allocatable" instead of "pointer".

    real, allocatable :: a(:,:), b(:,:)

    Assigning a floating point number to a pointer looks dubious to me.

提交回复
热议问题