Skip to main content

IV31621: INTERNAL COMPILER ERROR IN ASTI


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When compiling the provided test case, the compiler produces an
    Internal Compiler Error.
    
    $cat test.f90
    
          use, intrinsic :: iso_c_binding
    
          type(c_ptr) :: cpointer
          integer, pointer :: farray(:,:)
          integer :: arr(2)
    
          call c_f_pointer(cpointer, farray, int(arr(1:2), 8))
    !      call c_f_pointer(cpointer, farray, arr(1:2))
    
          end
    
    
    =====Compiler Command:
    mpixlf2003_r -d -c FreeIPC.f90
    
    
    ===== ACTUAL OUTPUT:
    mpixlf2003_r -d -c FreeIPC.f90
    ** fipc_module   === 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.
    
    
    ===== EXPECTED OUTPUT:
    Should not produce an internal compiler error.
    

Local fix

  • Replace
       call c_f_pointer(cpointer, farray, int(arr(1:2),8))
    
    with
       call c_f_pointer(cpointer, farray, arr(1:2))
    

Problem summary

  • USERS AFFECTED:
    Users writing C-interoperable Fortran code and call C_F_POINTER
    and convert the type of the shape argument are potentially
    affected by this issue.
    
    PROBLEM DESCRIPTION:
    The compiler abends when converting the type of the shape
    argument to C_F_POINTER intrinsic.
    

Problem conclusion

  • The fix in the compiler is to handle conversion operations on
    SHAPE argument when transforming a call to C_F_POINTER.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV31621

  • 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

    2012-11-08

  • Closed date

    2012-11-08

  • Last modified date

    2012-11-08

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

    LI77020

  • 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

  • RE10 PSY U856076

       UP C

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

XL Fortran for AIX

Compiler


Software version:
14.1


Reference #:
IV31621


Modified date:
2012-11-08

Translate my page

Content navigation