IBM Support

LI77556: INTERNAL ERROR DUE TO 'USE, ONLY' USAGE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An internal compiler error is encountered when using the "use,
    only" statement.
    
    
       ====  TEST CASE  ====
    
    module m
      interface cons
        procedure cons42
      end interface cons
    contains
      integer function cons42()
        cons42 = 42
      end function cons42
    end module m
    
    
    module m2
      type cons
        integer :: j = -1
      end type cons
      interface cons
        procedure consT
      end interface cons
    contains
      type(cons) function consT(k)
        integer :: k
        consT%j = k**2
      end function consT
    end module m2
    
    
    use m
    use m2, only: cons
    implicit none
    type(cons) :: x
    integer :: k
    x = cons(3)
    k = cons()
    end
    
    
    > xlf test.f90
    ** m   === End of Compilation 1 ===
    ** m2   === End of Compilation 2 ===
    1517-009:(U)Error in compiler runtime system; compilation ended.
    xlf: 1501-230 (S) 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

  • Remove "only: cons"
    

Problem summary

  • PROBLEM DESCRIPTION:
    When a module has a generic name that is the same as a derived
    type name, if the name is used by the USE, ONLY statement, the
    compiler may encounter an internal error.
    
    USERS AFFECTED:
    Users who have such name collision are affected.
    

Problem conclusion

  • The issue has been corrected.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77556

  • Reported component name

    XL FORTRAN FOR

  • Reported component ID

    5799AH100

  • Reported release

    E10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-10-08

  • Closed date

    2013-11-26

  • Last modified date

    2013-11-26

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

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

    IV53288

Fix information

  • Fixed component name

    XL FORTRAN FOR

  • Fixed component ID

    5799AH100

Applicable component levels

  • RE10 PSY

       UP

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS2MB5","label":"XL Fortran for Blue Gene\/Q"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"ALL VERSIONS","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
26 November 2013