https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031
--- Comment #3 from Jeffrey Walton <noloader at gmail dot com> --- (In reply to David Malcolm from comment #2) > Please note that C++ isn't supported in the -fanalyzer implementation in GCC > 10. I hope to get it working for GCC 11 (but there's a lot of work to do). Oh, sorry about that. That explains a lot. You might want to add that information to https://developers.redhat.com/blog/2020/03/26/static-analysis-in-gcc-10/. Maybe even add an example of the unexpected beahvior when using C++. I started the Analyzer testing after reading the blog.