IBM Support

PM22991: code generation for structs and pointer of structs

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Rhapsody in C, Model with Misra98 profile
    a struct is generated with suffix _t
    
    sample:
    typedef struct test_t {
        int len;  /*## attribute len */
    } test;
    
    a pointer of a struct (Kind Typedef) is generated without suffix
    
    sample:
    typedef struct test* ptest;
    
    this causes compiler errors when using ptest in function foo()
    
    sample:
    void foo(void) {
        ptest bar;
        bar-?len=0;
    }
    
    error: dereferencing pointer to incomplete type
    
    workaround:
    using Langage implementation instead of Typedef for ptest
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    code generation for structs and pointer of structs
    

Problem conclusion

  • Fixed in 7.5.3
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM22991

  • Reported component name

    TLOGIC RHAPSODY

  • Reported component ID

    5724V74RP

  • Reported release

    752

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-22

  • Closed date

    2010-12-18

  • Last modified date

    2010-12-18

  • 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

  • R752 PSN

       UP

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

Document Information

Modified date:
18 December 2010