http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57917
Nishant Sharma <nishant.031 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE |--- --- Comment #3 from Nishant Sharma <nishant.031 at gmail dot com> --- 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? What should be done so that compiler treats this as a warning OR do you think this is not a valid case for being reported & if not, then why would compiler not report anything?