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

ICE with allocated() on not allocatable member

Wolf_W_
New Contributor I
206 Views

Greetings again,

i got an internal compiler error with the following (wrong) code:

module test_mod

  type T_BAR
    integer :: a(1)
  end type

contains

  subroutine foo(this)
    class(T_BAR), intent(in) :: this

      if(allocated(this%a)) then
      end if

  end subroutine

end module

Intel Fortran Compiler: 16.2

Wolf

0 Kudos
2 Replies
Steven_L_Intel1
Employee
206 Views

Thanks. Escalated as issue DPD200408692.

0 Kudos
Steven_L_Intel1
Employee
206 Views

Fixed for the major release later this year. The compiler will now give an error for this incorrect usage.

0 Kudos
Reply