This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/57917] -Wuninitialized
- From: "nishant.031 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Jul 2013 10:05:26 +0000
- Subject: [Bug c++/57917] -Wuninitialized
- Auto-submitted: auto-generated
- References: <bug-57917-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57917
--- Comment #2 from Nishant Sharma <nishant.031 at gmail dot com> ---
(In reply to Jonathan Wakely from comment #1)
> GCC 4.2 is ancient and no longer supported.
>
> This is not "critical", it's your code that has a bug, not the compiler.
>
> You don't use A::isABC in the program, so it's a poor testcase.
>
> There are lots of existing PRs about this, e.g. PR 2972 and PR 42000 and PR
> 19808
>
> *** This bug has been marked as a duplicate of bug 19808 ***
Even if from main, if I execute: a.setABC(false);
Then also it does NOT report a warning.
This should have worked isn't it?
My main intent is to ask how to catch such warnings?