IBM Support

PH06536: TEMPLATE FUNCTION IS ALWAYS INLINE EVEN IF INLINE PROPERTY IS FALSE

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

  • If you create a non-template class with a member template
    function, the member function will always be declared/defined
    with the inline keyword. This cannot be disabled with the inline
    setting/property.
    
    Workaround:
    remove the [[inline]] attribute from the
    CPP_CG.WriterTemplate.OperationImp property to remove the inline
    keyword from the generated code.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * Rhapsody                                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * Template function is always inline even if inline property   *
    * is false                                                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • The Inline property is now affect code generation of template
    function. Note: function body is always generated in header
    file, so "in_source" and "in_header" values of the property will
    generate the same code.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH06536

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    831

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-12-17

  • Closed date

    2019-04-30

  • Last modified date

    2019-04-30

  • 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

    TLOGIC RHAPSODY

  • Fixed component ID

    5724V74RP

Applicable component levels



Document information

More support for: Rational Rhapsody

Software version: 831

Reference #: PH06536

Modified date: 30 April 2019