IBM Support

LI78125: REMOVE (E) MESSAGE ON THE OBJECT OF DERIVED TYPE WHEN THE TYPE IS EMPTY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The compiler incorrectly generates an (E) message for object of
    derived type when the type is empty.
    
    ===== COMPILE COMMAND:
    bgxlf2008 -c -qhalt=e foo.F
    
    ===== TESTCASE:
    % cat foo.F
    
    module foo
    
      type :: foo_t
      end type foo_t
    
    contains
    
      type(foo_t) function bar()
      end function bar
    
    end module foo
    
    
    %
    
    
    
    ===== ACTUAL OUTPUT:
    bgxlf2008 -c -qhalt=e foo.F
    "foo.F", 1513-083 (E) Internal or module function bar was not
    set within the function.
    ** foo   === End of Compilation 1 ===
    1501-511  Compilation failed for file foo.F.
    
    ===== EXPECTED OUTPUT:
    Compiler should not issue an (E) message for the above test
    case.
    

Local fix

  • N/A
    

Problem summary

  • USERS AFFECTED:
    When user applications include functions with results of
    derived types with no components, users may encounter this
    problem.
    
    PROBLEM DESCRIPTION:
    When a function result is of a derived type with no components,
    and the function result is not explicitly defined inside the
    function,
    compilation fails with an error message. Compiler should accept
    such cases as objects of derived-type with no components are
    considered as defined.
    

Problem conclusion

  • The problem has been fixed such that the compiler now accepts
    such cases as objects of derived-type with no components are
    considered as defined.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78125

  • 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

    2014-09-12

  • Closed date

    2014-11-18

  • Last modified date

    2014-12-18

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

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

    IV68522

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:
18 December 2014