Hi,
the latest cppcheck (main branch) produces this error (file attached):
./cppcheck /home/user/Desktop/ex2_1.cpp Checking /home/user/Desktop/ex2_1.cpp ... /home/user/Desktop/ex2_1.cpp:3:18: error: Internal error. Token::astOperand2() cyclic dependency. [cppcheckError] static_assert(sizeof(std::underlying_type<level>::type) >= sizeof(decltype(level)) ^</level>
Could you please check?
Best regards, Martin
Similar internal errors occur for:
static_assert(sizeof(std::underlying_type<Level>::type) >= sizeof(decltype(level)) , "Conversion to Level will not fit");
and
static_assert(sizeof(decltype(*(toSerialize.begin()))) <= sizeof(uint8_t), "toSerialize CharT (which should be char) is bigger than uint8_t...");
Thanks! I can reproduce I created https://trac.cppcheck.net/ticket/10271
This problem has been fixed now.
I can confirm, thanks!
Log in to post a comment.
Hi,
the latest cppcheck (main branch) produces this error (file attached):
./cppcheck /home/user/Desktop/ex2_1.cpp
Checking /home/user/Desktop/ex2_1.cpp ...
/home/user/Desktop/ex2_1.cpp:3:18: error: Internal error. Token::astOperand2() cyclic dependency. [cppcheckError]
static_assert(sizeof(std::underlying_type<level>::type) >= sizeof(decltype(level))
^</level>
Could you please check?
Best regards,
Martin
Similar internal errors occur for:
and
Thanks! I can reproduce I created https://trac.cppcheck.net/ticket/10271
This problem has been fixed now.
I can confirm, thanks!