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

Wrong error for derived-type coarray with no component

Hi,

I'm using ifort version 17.0.0.

The following code gives a forrtl: severe (71): integer divide by zero error if the object has no component.

Just uncomment the component definition in the EmptyType specification and the error magically goes away.

! ifort -coarray -coarray-num-images=1 main.f90; ./a.out
Module EmptyType_Module
  Type      :: EmptyType
!    integer  :: idum
  End Type
End Module
Program Main
  use EmptyType_Module ,only:  EmptyType
  type(EmptyType)  ,allocatable  ::      Object[:]
  allocate( Object
  • ) End Program
  •  

    0 Kudos
    2 Replies
    Highlighted
    18 Views

    We'll take a look - thanks.

    0 Kudos
    Highlighted
    18 Views

    Escalated as issue DPD200416771. This thread will be updated with any progress. Thanks for the nice test case.

    0 Kudos