Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

bug in ifort?

MR
Beginner
832 Views
Hi,
not sure this is the right place, however
I would like to report what seems to me a bug
in ifort.

The attached code works when compiled with

ifort ib.f90 -o ib

but does not when compiled with

ifort ib.f90 -r8 -o ib

My compiler:
ifort -V
Intel Fortran Compiler for Intel EM64T-based applications, Version 9.1 Build 20061101 Package ID:
Copyright (C) 1985-2006 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

Thanks, Best Regards
Marco Restelli
0 Kudos
2 Replies
Steven_L_Intel1
Employee
832 Views

The "right place" is Intel Premier Support.

You don't say how it doesn't work. I'm going to guess that you're seeing a segv or stack overflow based on my trying the application though I don't understand why the compiler is creating a stack temp here. I'll look into that.

If that is the problem, raise your stack limit (ulimit -s) or compile with -heap-arrays.

0 Kudos
MR
Beginner
832 Views
Steve,
thank you.

Indeed, the error was:

./ib
A
Segmentation fault

and raising the stack limit or compiling with -heap-arrays
solves the problem.


Best Regards
Marco Restelli
0 Kudos
Reply