------- Comment #9 from manu at gcc dot gnu dot org 2008-02-13 11:23 ------- Created an attachment (id=15136) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15136&action=view) patch and testcases
This patch contains an attempt to implement the suggestions given here: http://gcc.gnu.org/ml/gcc-patches/2007-11/msg00149.html It also contains all testcases from PR 5645 and PR 11159. The tests in g++.dg/warn/pr5645.C pass. The tests in g++.dg/warn/pr11159.C fail. The fundamental problem is that I don't understand what this warning is warning about. And nobody seems to have a clear idea either. Unless someone can put forward a clear definition that is justified for the testcases above and provides new testcases (either positive or negative), I am not going to work anymore on this (except if asked to remove the warning altogether). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=5645