Skip to main content

IV34104: FOR LOOP EXPRESSION3 NOT EVALUATED


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When compiling with C++, a for loop with multiple expressions in
    the expression3 location is not performing all expressions.  In
    the case where a loop increment or decrement is done, an
    infinite loop may be seen.
    
        ===== TEST CASE =====
    
       for ( i=0; i<10; i++,myint1,myint2=5 )
    

Local fix

  • Remove expressions that do not increment/decrement/set values.
    

Problem summary

  • PROBLEM DESCRIPTION:
    The C++ compiler is optimizing away part of a comma comma
    expression side effect when it finds a part that has no side
    effect.
    
    USERS AFFECTED:
    A comma expression such as  'a++,a,a1=5'  would eliminate the
    'a++'.
    

Problem conclusion

  • The problem has been resolved.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV34104

  • Reported component name

    XL C/C++ AIX

  • Reported component ID

    5724X1300

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-04

  • Closed date

    2013-04-19

  • Last modified date

    2013-04-23

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

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

Fix information

  • Fixed component name

    XL C/C++ AIX

  • Fixed component ID

    5724X1300

Applicable component levels

  • RB10 PSY U859089

       UP C

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

XL C/C++ for AIX


Software version:
11.1


Reference #:
IV34104


Modified date:
2013-04-23

Translate my page

Content navigation