------- Comment #14 from paolo dot carlini at oracle dot com 2008-07-09 19:20 ------- (In reply to comment #13) > is probably worth warning about, but maybe we ought to just skip this > warning when instantiating a template function. In other words, warn at > the point of original declaration of the template if it is already > obviously meaningless at that point to add the cv-qualifier, but not > warn at instantiation.
Ah, I didn't consider this option! Seems also trivial to implement, just remove completely the pt.c version of the warning and keep the one in decl.c. Then, over the next hours, if I don't see objections, I'm going to implement and post it, proposing it for 4_3-branch too, because of the very annoying warning from <functional> per this PR... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36760