https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99674
--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
A straightforward generalisation of this bug report would
be for gcc to warn on code like this:
struct S
{
int a, b, c;
S();
};
S::S() : a( 0), c( 2)
{
};
cppcheck finds the problem but gcc and clang don't.
mar19g.cc:11:4: warning: Member variable 'S::b' is not initialized in the
constructor. [uninitMemberVar]
Interestingly, there are about 125 cases of this in the gcc source code,
so this warning would be of immediate use for gcc itself.
List available on request.