I suspect something isn't expecting the non-type template parameter. For the time being, I just gate the code with the preprocessor when cppcheck runs. Thanks for the awesome tool!
Cheers,
Mike.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello cppcheck folk,
I have some C++20 code that is accused of containing a syntax error:
The above results in the following error:
error: Syntax Error: AST broken, binary operator '|' doesn't have two operands. [internalAstError]
Sample usage:
I suspect something isn't expecting the non-type template parameter. For the time being, I just gate the code with the preprocessor when cppcheck runs. Thanks for the awesome tool!
Cheers,
Mike.
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14477