Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Contributor I
4 Views

ICE with allocated() on not allocatable member

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
Highlighted
4 Views

Thanks. Escalated as issue

Thanks. Escalated as issue DPD200408692.

Retired 12/31/2016
0 Kudos
Highlighted
4 Views

Fixed for the major release

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

Retired 12/31/2016
0 Kudos