Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

code crash under ifort v18+

$
0
0

 

   I recently tested my code under the new intel fortran compiler version 18 and above and found that the new compiler crashed my program. The problems is that v18+ ifort crashes pointer passings. Here is a demo code:

program test
  real(8),dimension(:,:) ,pointer::p1
  call sub1(p1)
end program test

subroutine sub1(ptr)
  real(8),pointer,intent(out) :: ptr(:,:)
  print *,'inside sub1'
end subroutine sub1

It ran good under ifort v14, 15,16,17, but got the following error under intel v18+:

          forrtl: severe (174): SIGSEGV, segmentation fault occurred

I don't understand what happened here. Hope some one can help. Thanks!


Viewing all articles
Browse latest Browse all 2583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>