IBM Support

IZ53258: UNEXPECTED COMPILING ERROR

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Compiling the following test case:
    
    template <class T> class allocator{};
    class aaa {
    public:
       aaa splice(const aaa & lst = aaa());
    private:
       allocator<double> data;
    };
    
    causes unexpected error:
    
    1540-0253 (S) This use of undefined class "aaa" is not valid.
    

Local fix

  • N/A
    

Problem summary

  • Users with source code where template
    instants and certain kinds of default arguments are used
    in the same class are affected by this issue.
    
    Compiler issues an error complaining about
    incomplete / undefined types.
    

Problem conclusion

  • Changed the order in which the compiler
    processes default arguments and template instantiation.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IZ53258

  • Reported component name

    XLC C++ AIX

  • Reported component ID

    5724S7100

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-06-12

  • Closed date

    2009-09-18

  • Last modified date

    2009-09-23

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

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

    IZ56458 LI75094 LI75135

Fix information

  • Fixed component name

    XLC C++ AIX

  • Fixed component ID

    5724S7100

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
23 September 2009