This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80544] result of const_cast<T* cv> should by cv-unqualified
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 27 Apr 2017 12:50:56 +0000
- Subject: [Bug c++/80544] result of const_cast<T* cv> should by cv-unqualified
- Auto-submitted: auto-generated
- References: <bug-80544-4@http.gcc.gnu.org/bugzilla/>
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.