https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111144
--- Comment #1 from David Malcolm <dmalcolm at gcc dot gnu.org> --- See e.g.: https://wiki.sei.cmu.edu/confluence/display/c/PRE31-C.+Avoid+side+effects+in+arguments+to+unsafe+macros https://stackoverflow.com/questions/10593492/catching-assert-with-side-effects cppcheck: https://cppcheck.sourceforge.io/devinfo/doxyoutput/checkassert_8cpp_source.html Java: https://wiki.sei.cmu.edu/confluence/display/java/EXP06-J.+Expressions+used+in+assertions+must+not+produce+side+effects https://pvs-studio.com/en/docs/warnings/v6055/