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. ^