IBM Support

LI77874: COMPILE TIME EXPRESSION EVALUATION ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The below test case is valid Fortran code, but XLF gives the
    following error message:
    
    $xlf test1.f -c
    ** test   === End of Compilation 1 ===
    "test1.f", line 9.39: 1516-050 (S) Expression or initial value
    must be evaluated at compile time.
    ** sub   === End of Compilation 2 ===
    1501-511  Compilation failed for file test1.f.
    
    When line 9 is changed to:
    
          character (len=len(string1)+3) :: string3
    
    Eliminating the compile time expression evaluation for
    len(string2), then the program compiles successfully.
    
    ===== TESTCASE:
    $cat test1.f
          program test
          character (len=10) :: string1
          call sub(string1)
          end program
    
          subroutine sub(string1)
          character (*),intent(in) :: string1
          character (len=3) :: string2
          character (len=len(string1)+len(string2)) :: string3
          end
    

Local fix

  • Eliminate the compile time expression evaluation for
    len(string2), substitute with constant value.
    

Problem summary

  • PROBLEM DESCRIPTION: When using an auto variable as dummy of an
    intrinsic inquiry function as part of the expression that
    contains another dummy argument, the compiler incorrectly flag
    an error asking for compile time constant.
    
    USERS AFFECTED: Uses who use an auto variable as dummy of an
    intrinsic inquiry function as part of the expression that
    contains another dummy argument in their specification
    expression.
    

Problem conclusion

  • The problem is fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI77874

  • 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-02-18

  • Closed date

    2014-02-18

  • Last modified date

    2014-02-18

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

    IV49961

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

Fix information

  • Fixed component name

    XL FORTRAN FOR

  • Fixed component ID

    5799AH100

Applicable component levels

[{"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 February 2014