https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99667
Bug ID: 99667
Summary: RFE: complain about uninitialized member variables in
constructor
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: dmalcolm at gcc dot gnu.org
Blocks: 97110
Target Milestone: ---
The analyzer could warn about C++ constructors that don't fully initialize all
member variables.
See e.g. bug 99617 (found by cppcheck).
Related (but perhaps different) are *usages* of member variables in a
constructor before initialization; see e.g. bug 19808 (though this should
probably be a different RFE, as it's more difficult)
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97110
[Bug 97110] [meta-bug] tracker bug for supporting C++ in -fanalyzer