IBM Support

LI75135: 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

    LI75135

  • Reported component name

    XL C/C++ SLES10

  • Reported component ID

    5724U8300

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-12-01

  • Closed date

    2009-12-01

  • Last modified date

    2009-12-01

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

    IZ53258

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

Fix information

  • Fixed component name

    XL C/C++ SLES10

  • Fixed component ID

    5724U8300

Applicable component levels

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]

Document Information

Modified date:
14 October 2021