IBM Support

PM93169: USING GENERALIZATION WITH TEMPLATE PARAMETER CLASS LEADS TO UNCOMPILABLE CODE IN RATIONAL RHAPSODY V8.0.3

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Abstract: Attempts to apply Generalization with Template
    Parameter Class leads to uncompilable code with error 'Use of
    Template Class requires Template Argument List' in IBM Rational
    Rhapsody v8.0.3
    
    Error Description:
    
    1. Create a Template Class (say CCC) with a Template parameter
    XXX
    2. Draw a Generalization from CCC to XXX such that CCC derives
    from Template Parameter class XXX
    
    Notice that code for the above would be generated as below:
    
    //## class CCC
    template <class XXX> class CCC : public CCC::XXX
    
    This leads to compilation errors. This is a regression from
    earlier version of Rational Rhapsody 7.6.1.2, 8.0.2 where in the
    code would be generated as:
    
    //## class CCC
    template <class XXX> class CCC : public XXX
    
    
    Also on further analysis found that if the code is generated in
    the following format then also the aforesaid error can be
    avoided:
    
    //## class CCC
    template <class XXX> class CCC : public CCC<XXX>::XXX {
    
    Workaround: None. You need to manually modify the code
    

Local fix

Problem summary

  • Using generalization with Template Parameter Class leads to code
    that cannot be compiled.
    

Problem conclusion

  • Fixed in version 8.0.4
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM93169

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    803

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-07-17

  • Closed date

    2013-10-07

  • Last modified date

    2013-10-07

  • 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

  • R804 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7P9W","label":"Rational Rhapsody"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.3","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
06 January 2022