[Bug c++/14710] Warning about useless casts
- To: debian-gcc@lists.debian.org
- Subject: [Bug c++/14710] Warning about useless casts
- From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
- Date: Wed, 14 Mar 2012 18:00:33 +0000
- Message-id: <bug-14710-5724-Vl9voPnlLI@http.gcc.gnu.org/bugzilla/>
- In-reply-to: <bug-14710-5724@http.gcc.gnu.org/bugzilla/>
- References: <bug-14710-5724@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14710
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> 2012-03-14 18:00:33 UTC ---
I wouldn't warn about a cast that changes the type or value category of an
expression at all, or a cast that ends up being the same type as the result of
template instantiation. But a warning for (A*)&a seems reasonable.
--
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You reported the bug.
Reply to: