IBM Support

IV62158: INFINITE LOOP IN XLCENTRY WITH CONST QUALIFIED TEMPLATE TYPE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An infinite loop is seen in the C++ front end xlCentry component
    of the compiler when a const qualified template type is used:
    
    
        === TEST CASE ===
    
    class Test {};
    
    template <class T>
    struct MyStruct {
        typedef void (T::*CallType)()const;
    };
    
    int main() {
    
        //MyStruct<Test>::CallType t;        // Works
        MyStruct<const Test>::CallType t;    // Infinite loop
        return 0;
    }
    

Local fix

  • Remove const qualifier.
    

Problem summary

  • PROBLEM DESCRIPTION:
    Infinite loop caused by typedef const template definition.
    
    USERS AFFECTED:
    Users with typedef'd templates which have CV qualifiers.
    

Problem conclusion

  • An index variable that was not being updated was corrected, and
    users can now use CV qualifiers on typedef'd templates.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV62158

  • 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

    2014-07-01

  • Closed date

    2014-08-19

  • Last modified date

    2014-08-19

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

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

    IV62267 IV68018 LI78455

Fix information

  • Fixed component name

    XL C/C++ AIX

  • Fixed component ID

    5724X1300

Applicable component levels

  • RB10 PSY U867112

       UP C

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.1","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Document Information

Modified date:
19 August 2014