This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/57917] -Wuninitialized


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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]