IBM Support

IV53287: INTERNAL ERROR WITH VECTOR SUBSCRIPT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An internal compiler error occurs when trying to copy elements
    from an array into a parameter for c_f_pointer.
    
    
      ==== TEST CASE ====
    
    use iso_c_binding
    type(c_ptr) :: x
    integer, target :: array(3)
    integer, pointer :: ptr2(:,:,:)
    integer :: myshape(5)
    
    array = [22,33,44]
    x = c_loc(array)
    myshape = [1,2,3,4,1]
    
    call c_f_pointer(x, ptr2, shape=myshape([1,3,1]))
    if (any (lbound(ptr2) /= [ 1, 1, 1])) call abort ()
    if (any (ubound(ptr2) /= [ 1, 3, 1])) call abort ()
    if (any (shape(ptr2) /= [ 1, 3, 1])) call abort ()
    if (any (ptr2(1,:,1) /= array)) call abort()
    end
    
    
    > xlf test.f90
    ** _main   === End of Compilation 1 ===
    1585-100  Internal compiler error -- please contact your service
    representative. For more information visit:
    http://www.ibm.com/support/docview.wss?uid=swg21110810
    1501-511  Compilation failed for file test.f90.
    >
    

Local fix

  • Do not use the subscript.
    

Problem summary

  • PROBLEM DESCRIPTION:
    When user passes a section with vector subscripts as the SHAPE
    argument to C_F_POINTER, the xlfhot component of the compiler
    encounters an internal error.
    
    USERS AFFECTED:
    Those who pass a section with vector subscripts as the SHAPE
    argument to C_F_POINTER.
    

Problem conclusion

  • Compiler was fixed to pullout expressions containing vector
    subscript and scalarize them prior to the expansion of
    C_F_POINTER.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV53287

  • Reported component name

    XL FORTRAN FOR

  • Reported component ID

    5725C7400

  • Reported release

    E10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-12

  • Closed date

    2013-12-12

  • Last modified date

    2013-12-13

  • APAR is sysrouted FROM one or more of the following:

    LI77552

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    XL FORTRAN FOR

  • Fixed component ID

    5725C7400

Applicable component levels

[{"Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH4D","label":"XL Fortran for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"14.1"}]

Document Information

Modified date:
03 October 2021