IBM Support

IJ23993: PRIVATE TYPES VIA TYPEDEFS CAN NOT BE ACCESSED

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A typedef using a private typedef appears to be causing
    problems when trying to access a sub-type class.
    
    
       === TEST CASE ===
    
    struct Foo {
      struct Enum { };
    };
    
    struct Bar { typedef Foo::Enum Enum; };
    struct Wrapper : public Bar::Enum { };
    
    
    $ xlC -c apar.cpp
    "apar.cpp", line 6.30: 1540-0300 (S) The "private" member
    "struct Foo::Enum" cannot be accessed.
    $
    

Local fix

Problem summary

  • PROBLEM DESCRIPTION:
    Naming a member class or enumeration through an accessible
    typedef might result in an access error.
    
    USERS AFFECTED:
    Users using typedefs to access similarly-named member class or
    enumeration.
    

Problem conclusion

  • A fix was implemented.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ23993

  • Reported component name

    XL C/C++ FOR AI

  • Reported component ID

    5725C7200

  • Reported release

    C10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-04-02

  • Closed date

    2021-05-31

  • Last modified date

    2021-05-31

  • 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

    XL C/C++ FOR AI

  • Fixed component ID

    5725C7200

Applicable component levels

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGH3R","label":"XL C\/C++ for AIX"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"12.1","Line of Business":{"code":"LOB73","label":"Power TPS"}}]

Document Information

Modified date:
22 August 2024