https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80544
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-04-27 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Identical behaviour for static_cast<T* cv> which also returns a prvalue of non-class type, so should drop cv-qualifiers. Clang drops the cv-qualifiers, EDG drops them and warns, G++ fails to drop them.