This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/82269] -Wignored-qualifiers should not trigger on templated code
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 20 Sep 2017 13:22:22 +0000
- Subject: [Bug c++/82269] -Wignored-qualifiers should not trigger on templated code
- Auto-submitted: auto-generated
- References: <bug-82269-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82269
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I agree that in this case the caller is wrong and should do pointer_cast<T> not
pointer_cast<const T>. The warning found a bug.
In general the warning is a bit too noisy, but we already have a bug report
about it.