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

ASSOCIATE + Deferred-length character components

John4
Valued Contributor I
841 Views

Hi,

The ASSOCIATE feature seems to work fine with about everything else, so it seems that the deferred-length character feature needs at least another compiler iteration. The following illustrates the problem:

[fortran]implicit none

type :: t1
    character(:), allocatable :: c1
end type

type (t1) :: t

t%c1 = '*'
print*,'c=',t%c1

associate (c1 => t%c1)
    print*,'c=',c1
end associate

end[/fortran]

0 Kudos
2 Replies
Steven_L_Intel1
Employee
841 Views
Thanks - we have a previous report of this issue which we are working on. The issue ID is DPD200172824.
0 Kudos
Steven_L_Intel1
Employee
841 Views
I expect the fix for this problem to be in a release later this year.
0 Kudos
Reply