IBM Support

LI78258: TEMPLATE DESTRUCTOR LOOKUP FAILURE

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The users with nested typedefs and namespaces may experience
    the template destructor lookup failure problem.
    
    Consider the following example:
    
    $cat test.C
    namespace boost{
    template <class T> class shared_ptr{};
    }
    namespace ALog {
       class LogMessage {
       };
    }
    
    
    typedef struct {
        boost::shared_ptr< ALog::LogMessage > obj;
    } PyALogLogMessage;
    
    
    static void
    _wrap_PyALogLogMessage__tp_dealloc(PyALogLogMessage *self)
    {
        self->~obj.shared_ptr< ALog::LogMessage >();
    }
    
    $mpixlcxx_r -I/usr/include -c test.C
    "test.C", line 18.45: 1540-0157 (S) The text ">" is unexpected.
     It may be that this token was intended as a template argument
    list terminator but the name is not known to be a template.
    

Local fix

  • Remove the template argument from the destructor call
    

Problem summary

  • The nesting of namespace and typedef is causing template
    destructor lookup to fail.
    

Problem conclusion

  • The fix has been provided.
    

Temporary fix

Comments

APAR Information

  • APAR number

    LI78258

  • Reported component name

    XL C/C++ FOR LI

  • Reported component ID

    5725C7300

  • Reported release

    D10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-10-30

  • Closed date

    2014-10-30

  • Last modified date

    2014-10-30

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

    LI78031

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

Fix information

  • Fixed component name

    XL C/C++ FOR LI

  • Fixed component ID

    5725C7300

Applicable component levels



Document information

More support for: XL C/C++ for Linux
Compiler

Software version: 13.1

Reference #: LI78258

Modified date: 30 October 2014