------- Comment #2 from pinskia at gcc dot gnu dot org 2005-11-04 14:33 ------- Hmm, old (C) style casts are weird, IIRC they act as either a static_cast, a reinterpret_cast, or a const_cast. In this case they are acting like a const_cast which is what is normally goes and gets rid of a qualifier.
-- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |minor Summary|-Wcast-qual fails to reject |[4.0/4.1 Regression] -Wcast- |offending cast |qual fails to reject | |offending cast for a old | |style cast Target Milestone|--- |4.0.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24667