Menu

new SymbolDatabase bailout for identical struct/object identifiers

Martin
2021-08-31
2021-09-01
  • Martin

    Martin - 2021-08-31

    Hi,

    due to the latest commits cppcheck (head) analysis on this existing code now throws an error:

    class NC
    {
       struct IPv4_s
       {
          int32_t addr;
       };
       typedef struct IPv4_s IPv4_s;
    };
    
    auto temp = [this]() -> void {
       NC::IPv4_s ip = bar();
    };
    

    Error:

    error: SymbolDatabase bailout; unhandled code [syntaxError]
       NC::IPv4_s ip = bar();
                  ^
    

    Could you please check?

    Thanks,
    Martin

     
  • Martin

    Martin - 2021-08-31

    Analysis was done with: 870b8b9c608de8a71a33c0351e098e093aea4e27

     
  • CHR

    CHR - 2021-09-01

    Thanks for the report, ticket is here: https://trac.cppcheck.net/ticket/10451

     

    Last edit: CHR 2021-09-01

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.