This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38851] Compiler warns about uninitialized variable that is an object with a constructor
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2009 21:58:22 -0000
- Subject: [Bug c++/38851] Compiler warns about uninitialized variable that is an object with a constructor
- References: <bug-38851-17188@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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