This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: feature suggestion/request




/*
  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 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]