This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/50956] -Wcast-qual does not work


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]