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

Loc Compiler bug + workaround

jeffrey_t_b
Beginner
604 Views
I think that I stumbled across a weird compiler bug. The compiler dies a gruesome death this function:

    function locfun(sname)
       locfun = (loc(sname)+3)/4
    return
    end

The error message reported is
Compiling...
ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /dbglibs /c  "C:Documents and SettingsJeffreyDesktopConsole1Console1.f90"
0_3096

Severe: **Internal compiler error: internal abort** Please report this error along with the circumstances in which it occurred in a Software Problem Report.  Note: File and line given may not be explicit cause of this error.
in file (null), line 0, column 0

compilation aborted for C:Documents and SettingsJeffreyDesktopConsole1Console1.f90 (code 3)


Console1 build failed.

Interestingly enough, it can be worked around by making a temporary variable to hold the loc function return, as in:
    function locfun(sname)
       i = loc(sname)
       locfun= (i+3)/4
    return
    end
I just thought that I'd let you all know, in case you happen to run into something similar. - Jeff Borlik
0 Kudos
1 Reply
Steven_L_Intel1
Employee
604 Views
You did, of course, already report this to Intel Premier Support?
0 Kudos
Reply