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

Internal compiler error with conflicting or multiple declarations involving parameterized derived types

FortranFan
Honored Contributor II
637 Views
module m

   implicit none

   type t(n)
      integer, len :: n
      integer :: i(n)
   end type t

   type(t(n=:)), allocatable :: foo

   type foo(n)
      integer, len :: n
      integer :: i(n)
   end type foo

end module m
Compiling with Intel(R) Visual Fortran Compiler 16.0 [Intel(R) 64]...
m.f90
m.f90(12): error #6406: Conflicting attributes or multiple declaration of name.   [FOO]
fortcom: Fatal: There has been an internal compiler error (C0000005).
compilation aborted for m.f90 (code 1)

 

0 Kudos
1 Reply
Kevin_D_Intel
Employee
637 Views

Thank you for the report and nice reproducer. I submitted this to Development.

(Internal tracking id: DPD200377533)

0 Kudos
Reply