IV38464: INCORRECT IMPLIED-DO ARRAY CONSTRUCTION

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • When constructing a multi-variate array with an implied-do
    constructor, the compiler is generating incorrect values.  For
    example, the following implied-do constructor:
    
    INTEGER, PARAMETER :: indices(36) &
      = (/ ((((16 + i + j*3 + k*12 + l*48, i=0,1), &
    j=0,2), k=0,2),l=0,1) /)
    
    , gives the following output:
    
    ===============
    Expected Output:
    
       16   17   19   20   22   23
       28   29   31   32   34   35
       40   41   43   44   46   47
       64   65   67   68   70   71
       76   77   79   80   82   83
       88   89   91   92   94   95
    
    =============
    Actual Output:
    
       16   17   22   23   28   29
       18   20   24   26   30   32
       24   27   30   33   36   39
       16   17   22   23   28   29
       18   20   24   26   30   32
       24   27   30   33   36   39
    

Local fix

Problem summary

  • PROBLEM DESCRIPTION:
    The Fortran compiler may incorrectly process long ac-value
    expressions in an array constructor.  This may cause
    applications to produce incorrect results.
    
    USERS AFFECTED:
    Users may encounter this problem if their application contains
    array constructors involving long expressions as ac-values.
    

Problem conclusion

  • The problem has been fixed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV38464

  • Reported component name

    XL FORTRAN FOR

  • Reported component ID

    5724X1500

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-21

  • Closed date

    2013-04-19

  • Last modified date

    2013-04-23

Fix information

  • Fixed component name

    XL FORTRAN FOR

  • Fixed component ID

    5724X1500

Applicable component levels

  • RD10 PSY U858571

       UP C



Rate this page:

(0 users)Average rating

Document information


More support for:

XL Fortran for AIX

Software version:

13.1

Reference #:

IV38464

Modified date:

2013-04-23

Translate my page

Machine Translation

Content navigation