IBM Support

PM38581: Defect: 'Uninitialized reference member' error raised from a class having a port.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • port' : must be initialized in constructor baase/member
    initializer list
    
    This problem will likely happen when following two conditions
    are met in your project configuration:
    
    1. ScalarContainment is globally set at profile level.
    2. The class has a port and its ScalarContainment is overridden
    to other value.
    
    Below is the code snippet that articulate the cause of
    compilation, see at line 104:
    
      ############################
      100:            ////    Relations and components    ////
      101:
      102:        protected :
      103:
      104:            IClassC? itsIClassC;        //## link
    itsIClassC
      105:        };
      ############################
    
    In this particular scenario, global profile's ScalarContainment
    is set to 'Reference' and a class's ScalarContainment is
    overridden to 'Pointer'.
    However, reference declaration is still used in the resulted
    code.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Overriding the property CPP_CG::Relation::ScalarContainment
    at the project or configuration level would result in
    compilation errors for code generated for ports.
    

Problem conclusion

  • Fixed in version 7.6.1
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM38581

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    751

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-05-06

  • Closed date

    2012-01-08

  • Last modified date

    2012-01-08

  • 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

  • R751 PSN

       UP

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

Document Information

Modified date:
27 October 2021