[Bug c++/96121] Uninitialized variable copying not diagnosed

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 13 12:08:18 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96121

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |19808
                 CC|                            |manu at gcc dot gnu.org
           Keywords|                            |easyhack

--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Probably a dup of bug 19808. There is an unfinished patch there that does the
check in the FE. That would side-step issues with A being empty (you just need
to check the order in which things are initialized in the mem-list).


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19808
[Bug 19808] miss a warning about uninitialized member usage in member
initializer list in constructor


More information about the Gcc-bugs mailing list