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]
Other format: [Raw text]

[Bug c++/38851] Compiler warns about uninitialized variable that is an object with a constructor



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-01-14 21:58 -------
  other.c_ = c;

The issue here is that MyCompare is an empty struct (but has a sizeof of 1
because C++ standard) but GCC is not deleting stores for some reason.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38851


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