This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36760] Simple std::bind use causes warnings with -Wextra
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Jul 2008 19:20:41 -0000
- Subject: [Bug c++/36760] Simple std::bind use causes warnings with -Wextra
- References: <bug-36760-5473@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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