This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19808] miss a warning about uninitialized member usage in member initializer list in constructor
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 Mar 2017 11:48:20 +0000
- Subject: [Bug c++/19808] miss a warning about uninitialized member usage in member initializer list in constructor
- Auto-submitted: auto-generated
- References: <bug-19808-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19808
--- Comment #33 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #32)
> (In reply to Richard Biener from comment #31)
> > This is really a dup of PR2972.
> >
> > *** This bug has been marked as a duplicate of bug 2972 ***
>
> No, it is not. The difference is explained by Jason in comment #22 and the
> existing bug by me in comment #23.
>
> There is not only a conceptual difference but a difference in difficulty.
> This bug can be solved entirely by the C++ FE (and this is what the patch in
> comment #29 does) while PR2972 needs middle-end support.
I have a fix for PR2972 and it also correctly handles this case so why is it
"conceptually different"?