Fixes are available
APAR status
Closed as program error.
Error description
The compiler abends for the following test case with the following compile line: Compile Line: xlf95 -c test.f ===== TESTCASE: $cat test.f module test implicit none contains elemental function rul(ss) character(len=*),intent(in):: ss character(len=len(ss)):: rul integer:: i,ia do i=1,len(ss) rul(i:i)=ss(i:i) enddo end function rul subroutine sortc(n, x) integer,intent(in):: n character(len=*),intent(inout):: x(n) character(len=len(x)):: xx(n) integer:: i xx=rul(x) end subroutine sortc end module test ===== ACTUAL OUTPUT: Internal compiler error; please contact your Service Representative ===== EXPECTED OUTPUT: Should not ICE.
Local fix
n/a
Problem summary
Users of elemental functions that return characters with runtime length are affected by this issue. The compiler abends due to bad code generation by upper stream components.
Problem conclusion
The compiler was fixed to generate correct instructions to load the element length of a character array used in an elemental function.
Temporary fix
Comments
APAR Information
APAR number
LI74477
Reported component name
XL FORTRAN AE B
Reported component ID
5799HJG00
Reported release
B10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-04-28
Closed date
2009-04-28
Last modified date
2009-04-28
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
XL FORTRAN AE B
Fixed component ID
5799HJG00
Applicable component levels
RB10 PSN IZ38369
UP06/09/13
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSB259","label":"XL Fortran Advanced Edition for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B.1","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
24 February 2022