Quantcast
Channel: Intel® Fortran Compiler
Viewing all articles
Browse latest Browse all 3270

Internal compiler error with long names - ifort 15.0.2

$
0
0

Hello,

I have recently run into an internal compiler error with ifort 15.0, for a piece of code that works just fine with Ifort 14.0.  I think this is a regression bug.

The catastrophic error shows up when I create a polymorphic pointer to an extended type with a long name, which is defined within a module that also has a long name.  I see the error whenever the sum of the two names (module + type) is equal to or larger than 110 characters.

Please consider the following code:

module     module________________with_a_long_name_of_55_characters
  type  :: type__________________with_a_long_name_of_55_characters
    integer :: i
  end type type__________________with_a_long_name_of_55_characters
end module module________________with_a_long_name_of_55_characters

program p

 use module________________with_a_long_name_of_55_characters, only: &
     type__________________with_a_long_name_of_55_characters

 implicit none
 class(type__________________with_a_long_name_of_55_characters), pointer :: sim

 allocate(type__________________with_a_long_name_of_55_characters::sim)
 sim%i = 4
 write(*,*) sim%i

end program p

Compiling with

$ ifort -stand f08 p.f90 -o -p

I see the error

101004_2054

catastrophic error: **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.
compilation aborted for p.F90 (code 1)

The same code is correctly compiled by ifort 14.0.

$ifort -V
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.2.164 Build 20150121

Thanks,
Yaman


Viewing all articles
Browse latest Browse all 3270

Trending Articles