[Bug c++/82219] [8 Regression] Not wanted warning: "type qualifiers ignored on cast result type" on template instantiation
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 15 13:12:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82219
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-09-15
Ever confirmed|0 |1
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(I added this warning in r248432)
(In reply to Markus Trippelsdorf from comment #2)
> I don't think this warning makes much sense for templates.
It does in general, e.g. we should still warn for static_cast<const T>(0),
but I agree it might be too noisy for static_cast<T>(0) where is_const<T> is
true.
More information about the Gcc-bugs
mailing list