Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

problem with temporary arrays

Rosenberg__Robert
120 Views

With ifort 19.x I get a segfault when I pass a temporary array of a certain length to an internal procedure. This works fine with gfortran and pgf90.  Is this a bug in the compiler?

0 Kudos
2 Replies
Steve_Lionel
Black Belt Retired Employee
120 Views

You are most likely running out of stack. Try compiling with -heap-arrays. .

Andriy
Beginner
120 Views

You SEGFAULT here:

real     ( 8), dimension(n) :: at,bt

or here:

at-bt

Not in the subroutine.

And it is stack overflow just as Steve have pointed out.

Reply