https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81169
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-06-22 Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- Confirmed. By making use of STRIP_NOPS() the maybe_warn_class_memaccess function that implements the warning misses that the cast has removed the volatility of the argument's type.