Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29281 Discussions

DLLIMPORT of COMMON block causes internal compiler error

davejk2
Beginner
443 Views
The following code generates an internal compiler error:
program TestCommonImport
implicit none
!DEC$ ATTRIBUTES DLLIMPORT :: / abc /
common / abc / x, xa
real x, xa(10)
x = xa(1) ! This is OK
xa(1) = 1.0 ! Generates "internal compiler error"
end program TestCommonImport

The problem occurs when assigning a value to an array element that is a member of a common block imported from another DLL. The "buildlog.txt" is
------ Build started: Project: TestCommonImport, Configuration: Debug|Win32 ------
Deleting intermediate files and output files for project 'TestCommonImport', configuration 'Debug|Win32'.
Compiling...
ifort /nologo /Zi /Od /module:"Debug/" /object:"Debug/" /traceback /check:bounds /libs:static /dbglibs /c c:srcTestCommonImportTestCommonImport.f90
0_1104
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:srcTestCommonImportTestCommonImport.f90 (code 3)

TestCommonImport build failed.
Is this a known problem?
Thanks and Regards,
David
0 Kudos
1 Reply
Steven_L_Intel1
Employee
443 Views
You didn't say what version you are using. It works for me in 8.0.050.

Please note that this is NOT the place to report suspected compiler bugs. For that, please use https://premier.intel.com/
0 Kudos
Reply