This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
uninitialised c++ members
- To: gcc at gcc dot gnu dot org
- Subject: uninitialised c++ members
- From: John Levon <moz at compsoc dot man dot ac dot uk>
- Date: Mon, 13 Aug 2001 15:01:33 +0100
is it possible for gcc to warn me when I do :
class M {
Thing * a;
int b;
public:
M() { };
};
... M m(); ...
i.e. the class members are not intialised in the ctor, either with initialiser
lists or in the ctor ?
thanks
john
--
"Not to laugh, not to lament, not to curse, but to understand."
- Spinoza