Menu

function-try-block results in syntax-error

2021-03-31
2021-04-03
  • Steffen Brauer

    Steffen Brauer - 2021-03-31

    cppcheck-2.2

    void test_case()
    try
    {}
    catch(...)

    produces "Cppcheck: (error) syntaxError: syntax error: keyword 'try' is not allowed in global scope"

     
  • Daniel Marjamäki

    Thanks! We have tickets about that.

     

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.