- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
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
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/
Please note that this is NOT the place to report suspected compiler bugs. For that, please use https://premier.intel.com/

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page