Skip to main content

PM57242: unexpected violation reported by the MISRA-2-10-3 rule


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • My_NamespaceVoid_t);        // G++ 4.1.2 OK | G++ 4.5.2 KO |
    Logiscope finds a strange violation here
      };
    }
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Misra rule:  MISRA-2-10-3 description states that  "a
    typedef name (including qualifciation, if any) shall be a
    unique identifier"
    
    When the below code is checked for violations, Logiscope
    reports violations when its not expected.
    
    namespace My_Namespace {
      typedef void My_NamespaceVoid_t;
    }
    
    namespace My_Namespace {
      void my_local_func3 (void) {;};
      My_NamespaceVoid_t my_local_func4 (void) {;};    // G++ OK
    | Logiscope finds a strange violation here
      My_NamespaceVoid_t my_local_func5 (My_NamespaceVoid_t)
    {;}; // G++ 4.1.2 OK | G++ 4.5.2 KO | Logiscope finds 2
    strange violations here
      //main_MISRA_2_10_3_V1.cpp:77:30: error: '?anonymous?' has
    incomplete type
      //main_MISRA_2_10_3_V1.cpp:77:40: error: invalid use of
    'My_Namespace::My_NamespaceVoid_t'
    
      class MyLocalClass {
      public:
        MyLocalClass (My_Namespace::My_NamespaceVoid_t);
    // G++ 4.1.2 OK | G++ 4.5.2 KO | Logiscope finds a strange
    violation here
      };
    }
    

Problem conclusion

  • Fixed in fixpack 6.6.4
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM57242

  • Reported component name

    TLOGIC LOGISCOP

  • Reported component ID

    5724V81LS

  • Reported release

    650

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-02-02

  • Closed date

    2012-07-10

  • Last modified date

    2012-07-10

  • 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 LOGISCOP

  • Fixed component ID

    5724V81LS

Applicable component levels

  • R650 PSN

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational Logiscope


Software version:
6.5


Reference #:
PM57242


Modified date:
2012-07-10

Translate my page

Content navigation