Menu

SymbolDatabase bailout

Joost W
2024-11-09
2024-11-12
  • Joost W

    Joost W - 2024-11-09

    Hi, I want to report a potential bug in cppcheck. When running cppcheck on the minimal code at the end of this post the following error is shown:

    cppcheckfail.cpp:10:22: error: SymbolDatabase bailout; unhandled code [syntaxError]
    some_function({B::a});

    and then cppcheck quits. As far I can tell the code is valid c++. Both the "struct" keyword in the alias and the curly braces in the function call are required for cppcheck to fail.

    Minimal code example to reproduce:

    struct A
    {
      int a = 1;
    };
    
    using B = struct A;
    
    void test()
    {
      some_function({B::a});
    }
    
     

    Last edit: Joost W 2024-11-09
  • Oleksandr Labetskyi

    Hello Joost and thank you for the report. You can find new issue here.

     

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.