[Bug c++/57917] -Wuninitialized
nishant.031 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jul 17 10:07:00 GMT 2013
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?
More information about the Gcc-bugs
mailing list