IBM Support

IV67661: MISSING PROCEDURE LIST ERROR WHEN USING SIZEOF IN CHARACTER ARRAY DEFINITION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Using the SIZEOF intrinsic is causing a (U) error when the
    SIZEOF is used in an array definition:
    
          CHARACTER(LEN=SIZEOF(VAL)) char_val
    
    
    
    
       === TEST CASE ===
    
          SUBROUTINE TEST ()
          character*6    val
          CHARACTER(LEN=SIZEOF(VAL)) char_val
          RETURN
          END
    
    
    
    "test.f", line 3.28: 1516-050 (S) Expression or initial value
    must be evaluated at compile time.
    1517-004: (U) Missing procedure list entries.  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.f.
    

Local fix

  • Use the LEN intrinsic instead of SIZEOF:
    
         CHARACTER(LEN=LEN(VAL)) char_val
    

Problem summary

  • PROBLEM DESCRIPTION:
    The compiler does not evaluate the result of SIZEOF at compile
    time when the argument of the intrinsic has compile-time known
    size.  Instead, the compiler either incorrectly issues an error
    message or generates runtime code that can get lost due to
    freeing stacks.
    
    USERS AFFECTED:
    Users who use the SIZEOF intrinsic on character types in an
    initialization expression or specification expression.
    

Problem conclusion

  • The SIZEOF intrinsic has been fixed to produce the correct
    result.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV67661

  • 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

    2014-12-09

  • Closed date

    2015-02-26

  • Last modified date

    2015-02-26

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

    IV67649

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

    IV72847

Fix information

  • Fixed component name

    XL FORTRAN FOR

  • Fixed component ID

    5725C7400

Applicable component levels

  • RE10 PSY

       UP

[{"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:
01 October 2021