This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: feature suggestion/request
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: Re: feature suggestion/request
- From: Han-Wen Nienhuys <hanwen at cs dot uu dot nl>
- Date: Wed, 2 Jun 1999 16:52:05 +0200 (CEST)
- Reply-To: hanwen at cs dot uu dot nl
/*
Would it be possible for egcs to produce a warning
constructor Bla::Bla () might not initialize member variable k
for this code?
Currently (gcs-2.91.66 19990314/Linux (egcs-1.1.2 release)), does
not complain. I make the mistake all too often, and would welcome a
warning for it.
*/
class Bla
{
public:
int k;
Bla ()
{
};
};
main ()
{
Bla b;
printf ("%d", b.k);
}
--
Han-Wen Nienhuys, hanwen@cs.uu.nl ** GNU LilyPond - The Music Typesetter
http://www.cs.uu.nl/people/hanwen/lilypond/index.html