This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/70991] Uninitialized class allowed if it came from self-assignment, or a member function
- From: "appfault at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 May 2016 18:58:02 +0000
- Subject: [Bug c++/70991] Uninitialized class allowed if it came from self-assignment, or a member function
- Auto-submitted: auto-generated
- References: <bug-70991-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70991
--- Comment #2 from bennet brauer <appfault at hotmail dot com> ---
By the way, this bug mentions classes specifically, because the same idea but
with a simple "int" assignment generates a warning:
error: âfooâ is used uninitialized in this function [-Werror=uninitialized]
int foo = foo; // Unintialized direct assignment.
^