re PR c/55383 (-Wcast-qual reports incorrect message)