This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51379] reinterpret_cast is not particularly useful
- 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, 01 Dec 2011 13:20:16 +0000
- Subject: [Bug c++/51379] reinterpret_cast is not particularly useful
- Auto-submitted: auto-generated
- References: <bug-51379-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51379
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-01 13:20:16 UTC ---
This is required by the standard.
[expr.reinterpret.cast] explicitly lists all the conversion allowed by
reinterpret_cast
You'll get the same result from http://llvm.org/demo/ and
http://www.comeaucomputing.com/tryitout/
If GCC, EDG and Clang all reject your code then your code is probably wrong.