------- Comment #2 from simon_baldwin at yahoo dot com 2006-08-24 16:53 ------- You didn't miss anything. There's no bug here, just a request for a new warning message.
As you note, the const-volatile qualifications in the cast have no meaning, and are completely ignored by the compiler. While it's busy ignoring them, it could note this as a warning, in case the code author really meant something different. icc warns here; this PR aims to improve agreement in warnings between g++ and icc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28774