This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50956] -Wcast-qual does not work
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 02 Nov 2011 13:00:52 +0000
- Subject: [Bug c++/50956] -Wcast-qual does not work
- Auto-submitted: auto-generated
- References: <bug-50956-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50956
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot
| |com
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-11-02 13:00:52 UTC ---
Ok. Note that the *diagnostic* use of that c_cast_p flag is:
if (!c_cast_p
&& check_for_casting_away_constness (intype, type, STATIC_CAST_EXPR,
complain))
return error_mark_node;
Then, looks like we should just remove it from such conditionals (3 in static
and 1 in interpret)? Seems simple.